From 1173daf1de644c3a752f4cdb9761833fa1f66279 Mon Sep 17 00:00:00 2001 From: Adam Semenenko Date: Sun, 19 Sep 2021 11:59:34 +0200 Subject: [PATCH] delombok --- pom.xml | 8 +- .../com/twilio/jwt/taskrouter/Policy.java | 10 +-- .../rest/accounts/v1/AuthTokenPromotion.java | 16 ++-- .../rest/accounts/v1/SecondaryAuthToken.java | 16 ++-- .../rest/accounts/v1/credential/Aws.java | 16 ++-- .../accounts/v1/credential/PublicKey.java | 16 ++-- .../com/twilio/rest/api/v2010/Account.java | 17 ++--- .../rest/api/v2010/account/Address.java | 16 ++-- .../rest/api/v2010/account/Application.java | 15 ++-- .../v2010/account/AuthorizedConnectApp.java | 18 ++--- .../account/AvailablePhoneNumberCountry.java | 15 ++-- .../rest/api/v2010/account/Balance.java | 16 ++-- .../twilio/rest/api/v2010/account/Call.java | 20 ++--- .../rest/api/v2010/account/Conference.java | 17 ++--- .../rest/api/v2010/account/ConnectApp.java | 17 ++--- .../v2010/account/IncomingPhoneNumber.java | 18 ++--- .../twilio/rest/api/v2010/account/Key.java | 16 ++-- .../rest/api/v2010/account/Message.java | 17 ++--- .../twilio/rest/api/v2010/account/NewKey.java | 16 ++-- .../rest/api/v2010/account/NewSigningKey.java | 16 ++-- .../rest/api/v2010/account/Notification.java | 15 ++-- .../api/v2010/account/OutgoingCallerId.java | 16 ++-- .../twilio/rest/api/v2010/account/Queue.java | 16 ++-- .../rest/api/v2010/account/Recording.java | 18 ++--- .../rest/api/v2010/account/ShortCode.java | 15 ++-- .../rest/api/v2010/account/SigningKey.java | 16 ++-- .../twilio/rest/api/v2010/account/Token.java | 16 ++-- .../rest/api/v2010/account/Transcription.java | 18 ++--- .../api/v2010/account/ValidationRequest.java | 16 ++-- .../account/address/DependentPhoneNumber.java | 18 ++--- .../availablephonenumbercountry/Local.java | 16 ++-- .../MachineToMachine.java | 16 ++-- .../availablephonenumbercountry/Mobile.java | 16 ++-- .../availablephonenumbercountry/National.java | 16 ++-- .../SharedCost.java | 16 ++-- .../availablephonenumbercountry/TollFree.java | 16 ++-- .../availablephonenumbercountry/Voip.java | 16 ++-- .../rest/api/v2010/account/call/Event.java | 16 ++-- .../rest/api/v2010/account/call/Feedback.java | 18 ++--- .../v2010/account/call/FeedbackSummary.java | 18 ++--- .../api/v2010/account/call/Notification.java | 15 ++-- .../rest/api/v2010/account/call/Payment.java | 18 ++--- .../api/v2010/account/call/Recording.java | 18 ++--- .../v2010/account/conference/Participant.java | 19 ++--- .../v2010/account/conference/Recording.java | 18 ++--- .../incomingphonenumber/AssignedAddOn.java | 16 ++-- .../account/incomingphonenumber/Local.java | 18 ++--- .../account/incomingphonenumber/Mobile.java | 18 ++--- .../account/incomingphonenumber/TollFree.java | 18 ++--- .../assignedaddon/AssignedAddOnExtension.java | 16 ++-- .../api/v2010/account/message/Feedback.java | 18 ++--- .../rest/api/v2010/account/message/Media.java | 16 ++-- .../rest/api/v2010/account/queue/Member.java | 16 ++-- .../v2010/account/recording/AddOnResult.java | 17 ++--- .../account/recording/Transcription.java | 18 ++--- .../recording/addonresult/Payload.java | 15 ++-- .../api/v2010/account/sip/CredentialList.java | 15 ++-- .../rest/api/v2010/account/sip/Domain.java | 14 ++-- .../account/sip/IpAccessControlList.java | 15 ++-- .../sip/credentiallist/Credential.java | 16 ++-- .../sip/domain/CredentialListMapping.java | 16 ++-- .../domain/IpAccessControlListMapping.java | 16 ++-- .../AuthCallsCredentialListMapping.java | 16 ++-- .../AuthCallsIpAccessControlListMapping.java | 16 ++-- ...uthRegistrationsCredentialListMapping.java | 16 ++-- .../sip/ipaccesscontrollist/IpAddress.java | 16 ++-- .../rest/api/v2010/account/usage/Record.java | 17 ++--- .../rest/api/v2010/account/usage/Trigger.java | 17 ++--- .../v2010/account/usage/record/AllTime.java | 17 ++--- .../api/v2010/account/usage/record/Daily.java | 17 ++--- .../v2010/account/usage/record/LastMonth.java | 17 ++--- .../v2010/account/usage/record/Monthly.java | 17 ++--- .../v2010/account/usage/record/ThisMonth.java | 17 ++--- .../api/v2010/account/usage/record/Today.java | 17 ++--- .../v2010/account/usage/record/Yearly.java | 17 ++--- .../v2010/account/usage/record/Yesterday.java | 17 ++--- .../twilio/rest/autopilot/v1/Assistant.java | 15 ++-- .../rest/autopilot/v1/RestoreAssistant.java | 16 ++-- .../rest/autopilot/v1/assistant/Defaults.java | 16 ++-- .../rest/autopilot/v1/assistant/Dialogue.java | 16 ++-- .../autopilot/v1/assistant/FieldType.java | 15 ++-- .../autopilot/v1/assistant/ModelBuild.java | 18 ++--- .../rest/autopilot/v1/assistant/Query.java | 16 ++-- .../autopilot/v1/assistant/StyleSheet.java | 16 ++-- .../rest/autopilot/v1/assistant/Task.java | 15 ++-- .../rest/autopilot/v1/assistant/Webhook.java | 16 ++-- .../v1/assistant/fieldtype/FieldValue.java | 16 ++-- .../autopilot/v1/assistant/task/Field.java | 16 ++-- .../autopilot/v1/assistant/task/Sample.java | 16 ++-- .../v1/assistant/task/TaskActions.java | 16 ++-- .../v1/assistant/task/TaskStatistics.java | 16 ++-- .../twilio/rest/bulkexports/v1/Export.java | 15 ++-- .../bulkexports/v1/ExportConfiguration.java | 16 ++-- .../rest/bulkexports/v1/export/Day.java | 16 ++-- .../v1/export/ExportCustomJob.java | 18 ++--- .../rest/bulkexports/v1/export/Job.java | 18 ++--- .../com/twilio/rest/chat/v1/Credential.java | 18 ++--- .../java/com/twilio/rest/chat/v1/Service.java | 17 ++--- .../twilio/rest/chat/v1/service/Channel.java | 17 ++--- .../com/twilio/rest/chat/v1/service/Role.java | 18 ++--- .../com/twilio/rest/chat/v1/service/User.java | 15 ++-- .../rest/chat/v1/service/channel/Invite.java | 16 ++-- .../rest/chat/v1/service/channel/Member.java | 16 ++-- .../rest/chat/v1/service/channel/Message.java | 18 ++--- .../chat/v1/service/user/UserChannel.java | 17 ++--- .../com/twilio/rest/chat/v2/Credential.java | 18 ++--- .../java/com/twilio/rest/chat/v2/Service.java | 17 ++--- .../twilio/rest/chat/v2/service/Binding.java | 17 ++--- .../twilio/rest/chat/v2/service/Channel.java | 17 ++--- .../com/twilio/rest/chat/v2/service/Role.java | 18 ++--- .../com/twilio/rest/chat/v2/service/User.java | 17 ++--- .../rest/chat/v2/service/channel/Invite.java | 16 ++-- .../rest/chat/v2/service/channel/Member.java | 18 ++--- .../rest/chat/v2/service/channel/Message.java | 18 ++--- .../rest/chat/v2/service/channel/Webhook.java | 18 ++--- .../chat/v2/service/user/UserBinding.java | 18 ++--- .../chat/v2/service/user/UserChannel.java | 17 ++--- .../rest/conversations/v1/Configuration.java | 15 ++-- .../rest/conversations/v1/Conversation.java | 18 ++--- .../rest/conversations/v1/Credential.java | 18 ++--- .../v1/ParticipantConversation.java | 18 ++--- .../twilio/rest/conversations/v1/Role.java | 18 ++--- .../twilio/rest/conversations/v1/Service.java | 15 ++-- .../twilio/rest/conversations/v1/User.java | 17 ++--- .../v1/configuration/Webhook.java | 18 ++--- .../v1/conversation/Message.java | 18 ++--- .../v1/conversation/Participant.java | 18 ++--- .../v1/conversation/Webhook.java | 18 ++--- .../conversation/message/DeliveryReceipt.java | 18 ++--- .../conversations/v1/service/Binding.java | 18 ++--- .../v1/service/Configuration.java | 15 ++-- .../v1/service/Conversation.java | 18 ++--- .../v1/service/ParticipantConversation.java | 18 ++--- .../rest/conversations/v1/service/Role.java | 18 ++--- .../rest/conversations/v1/service/User.java | 17 ++--- .../service/configuration/Notification.java | 16 ++-- .../v1/service/conversation/Message.java | 18 ++--- .../v1/service/conversation/Participant.java | 18 ++--- .../v1/service/conversation/Webhook.java | 18 ++--- .../conversation/message/DeliveryReceipt.java | 18 ++--- .../v1/service/user/UserConversation.java | 18 ++--- .../v1/user/UserConversation.java | 18 ++--- .../com/twilio/rest/events/v1/EventType.java | 15 ++-- .../com/twilio/rest/events/v1/Schema.java | 15 ++-- .../java/com/twilio/rest/events/v1/Sink.java | 18 ++--- .../twilio/rest/events/v1/Subscription.java | 16 ++-- .../rest/events/v1/schema/SchemaVersion.java | 16 ++-- .../twilio/rest/events/v1/sink/SinkTest.java | 16 ++-- .../rest/events/v1/sink/SinkValidate.java | 16 ++-- .../v1/subscription/SubscribedEvent.java | 16 ++-- src/main/java/com/twilio/rest/fax/v1/Fax.java | 17 ++--- .../com/twilio/rest/fax/v1/fax/FaxMedia.java | 16 ++-- .../com/twilio/rest/flexapi/v1/Channel.java | 16 ++-- .../twilio/rest/flexapi/v1/Configuration.java | 20 ++--- .../com/twilio/rest/flexapi/v1/FlexFlow.java | 18 ++--- .../twilio/rest/flexapi/v1/WebChannel.java | 18 ++--- .../com/twilio/rest/frontlineapi/v1/User.java | 18 ++--- .../com/twilio/rest/insights/v1/Call.java | 15 ++-- .../rest/insights/v1/CallSummaries.java | 18 ++--- .../com/twilio/rest/insights/v1/Room.java | 17 ++--- .../rest/insights/v1/call/CallSummary.java | 18 ++--- .../twilio/rest/insights/v1/call/Event.java | 18 ++--- .../twilio/rest/insights/v1/call/Metric.java | 18 ++--- .../rest/insights/v1/room/Participant.java | 18 ++--- .../rest/ipmessaging/v1/Credential.java | 18 ++--- .../twilio/rest/ipmessaging/v1/Service.java | 17 ++--- .../rest/ipmessaging/v1/service/Channel.java | 17 ++--- .../rest/ipmessaging/v1/service/Role.java | 18 ++--- .../rest/ipmessaging/v1/service/User.java | 15 ++-- .../v1/service/channel/Invite.java | 16 ++-- .../v1/service/channel/Member.java | 16 ++-- .../v1/service/channel/Message.java | 18 ++--- .../v1/service/user/UserChannel.java | 17 ++--- .../rest/ipmessaging/v2/Credential.java | 18 ++--- .../twilio/rest/ipmessaging/v2/Service.java | 17 ++--- .../rest/ipmessaging/v2/service/Binding.java | 17 ++--- .../rest/ipmessaging/v2/service/Channel.java | 17 ++--- .../rest/ipmessaging/v2/service/Role.java | 18 ++--- .../rest/ipmessaging/v2/service/User.java | 17 ++--- .../v2/service/channel/Invite.java | 16 ++-- .../v2/service/channel/Member.java | 18 ++--- .../v2/service/channel/Message.java | 18 ++--- .../v2/service/channel/Webhook.java | 18 ++--- .../v2/service/user/UserBinding.java | 18 ++--- .../v2/service/user/UserChannel.java | 17 ++--- .../twilio/rest/lookups/v1/PhoneNumber.java | 18 ++--- .../rest/messaging/v1/BrandRegistration.java | 18 ++--- .../rest/messaging/v1/Deactivations.java | 16 ++-- .../rest/messaging/v1/ExternalCampaign.java | 16 ++-- .../com/twilio/rest/messaging/v1/Service.java | 17 ++--- .../com/twilio/rest/messaging/v1/Usecase.java | 16 ++-- .../messaging/v1/service/AlphaSender.java | 16 ++-- .../messaging/v1/service/PhoneNumber.java | 16 ++-- .../rest/messaging/v1/service/ShortCode.java | 16 ++-- .../messaging/v1/service/UsAppToPerson.java | 16 ++-- .../v1/service/UsAppToPersonUsecase.java | 16 ++-- .../com/twilio/rest/monitor/v1/Alert.java | 15 ++-- .../com/twilio/rest/monitor/v1/Event.java | 16 ++-- .../com/twilio/rest/notify/v1/Credential.java | 18 ++--- .../com/twilio/rest/notify/v1/Service.java | 16 ++-- .../rest/notify/v1/service/Binding.java | 17 ++--- .../rest/notify/v1/service/Notification.java | 18 ++--- .../v2/regulatorycompliance/Bundle.java | 17 ++--- .../v2/regulatorycompliance/EndUser.java | 18 ++--- .../v2/regulatorycompliance/EndUserType.java | 16 ++-- .../v2/regulatorycompliance/Regulation.java | 18 ++--- .../SupportingDocument.java | 18 ++--- .../SupportingDocumentType.java | 16 ++-- .../bundle/Evaluation.java | 18 ++--- .../bundle/ItemAssignment.java | 16 ++-- .../rest/preview/bulkExports/Export.java | 15 ++-- .../bulkExports/ExportConfiguration.java | 16 ++-- .../rest/preview/bulkExports/export/Day.java | 16 ++-- .../bulkExports/export/ExportCustomJob.java | 16 ++-- .../rest/preview/bulkExports/export/Job.java | 16 ++-- .../rest/preview/deployedDevices/Fleet.java | 15 ++-- .../deployedDevices/fleet/Certificate.java | 16 ++-- .../deployedDevices/fleet/Deployment.java | 16 ++-- .../preview/deployedDevices/fleet/Device.java | 16 ++-- .../preview/deployedDevices/fleet/Key.java | 16 ++-- .../hostedNumbers/AuthorizationDocument.java | 17 ++--- .../hostedNumbers/HostedNumberOrder.java | 19 ++--- .../DependentHostedNumberOrder.java | 19 ++--- .../preview/marketplace/AvailableAddOn.java | 16 ++-- .../preview/marketplace/InstalledAddOn.java | 16 ++-- .../AvailableAddOnExtension.java | 16 ++-- .../InstalledAddOnExtension.java | 16 ++-- .../com/twilio/rest/preview/sync/Service.java | 15 ++-- .../rest/preview/sync/service/Document.java | 16 ++-- .../rest/preview/sync/service/SyncList.java | 15 ++-- .../rest/preview/sync/service/SyncMap.java | 15 ++-- .../service/document/DocumentPermission.java | 16 ++-- .../sync/service/synclist/SyncListItem.java | 18 ++--- .../service/synclist/SyncListPermission.java | 16 ++-- .../sync/service/syncmap/SyncMapItem.java | 18 ++--- .../service/syncmap/SyncMapPermission.java | 16 ++-- .../preview/trustedComms/BrandedChannel.java | 15 ++-- .../trustedComms/BrandsInformation.java | 16 ++-- .../twilio/rest/preview/trustedComms/Cps.java | 16 ++-- .../preview/trustedComms/CurrentCall.java | 16 ++-- .../trustedComms/brandedchannel/Channel.java | 16 ++-- .../rest/preview/understand/Assistant.java | 15 ++-- .../assistant/AssistantFallbackActions.java | 16 ++-- .../assistant/AssistantInitiationActions.java | 16 ++-- .../understand/assistant/Dialogue.java | 16 ++-- .../understand/assistant/FieldType.java | 15 ++-- .../understand/assistant/ModelBuild.java | 18 ++--- .../preview/understand/assistant/Query.java | 16 ++-- .../understand/assistant/StyleSheet.java | 16 ++-- .../preview/understand/assistant/Task.java | 15 ++-- .../assistant/fieldtype/FieldValue.java | 16 ++-- .../understand/assistant/task/Field.java | 16 ++-- .../understand/assistant/task/Sample.java | 16 ++-- .../assistant/task/TaskActions.java | 16 ++-- .../assistant/task/TaskStatistics.java | 16 ++-- .../twilio/rest/preview/wireless/Command.java | 16 ++-- .../rest/preview/wireless/RatePlan.java | 16 ++-- .../com/twilio/rest/preview/wireless/Sim.java | 14 ++-- .../rest/preview/wireless/sim/Usage.java | 16 ++-- .../rest/pricing/v1/messaging/Country.java | 16 ++-- .../rest/pricing/v1/phonenumber/Country.java | 16 ++-- .../twilio/rest/pricing/v1/voice/Country.java | 16 ++-- .../twilio/rest/pricing/v1/voice/Number.java | 16 ++-- .../com/twilio/rest/pricing/v2/Country.java | 16 ++-- .../com/twilio/rest/pricing/v2/Number.java | 16 ++-- .../twilio/rest/pricing/v2/voice/Country.java | 16 ++-- .../twilio/rest/pricing/v2/voice/Number.java | 16 ++-- .../com/twilio/rest/proxy/v1/Service.java | 17 ++--- .../rest/proxy/v1/service/PhoneNumber.java | 16 ++-- .../twilio/rest/proxy/v1/service/Session.java | 17 ++--- .../rest/proxy/v1/service/ShortCode.java | 16 ++-- .../proxy/v1/service/session/Interaction.java | 18 ++--- .../proxy/v1/service/session/Participant.java | 15 ++-- .../participant/MessageInteraction.java | 19 ++--- .../twilio/rest/serverless/v1/Service.java | 15 ++-- .../rest/serverless/v1/service/Asset.java | 15 ++-- .../rest/serverless/v1/service/Build.java | 18 ++--- .../serverless/v1/service/Environment.java | 15 ++-- .../rest/serverless/v1/service/Function.java | 15 ++-- .../v1/service/asset/AssetVersion.java | 18 ++--- .../v1/service/build/BuildStatus.java | 18 ++--- .../v1/service/environment/Deployment.java | 16 ++-- .../v1/service/environment/Log.java | 18 ++--- .../v1/service/environment/Variable.java | 16 ++-- .../v1/service/function/FunctionVersion.java | 17 ++--- .../FunctionVersionContent.java | 16 ++-- .../java/com/twilio/rest/studio/v1/Flow.java | 17 ++--- .../rest/studio/v1/flow/Engagement.java | 18 ++--- .../twilio/rest/studio/v1/flow/Execution.java | 18 ++--- .../v1/flow/engagement/EngagementContext.java | 16 ++-- .../rest/studio/v1/flow/engagement/Step.java | 16 ++-- .../v1/flow/engagement/step/StepContext.java | 16 ++-- .../v1/flow/execution/ExecutionContext.java | 16 ++-- .../v1/flow/execution/ExecutionStep.java | 16 ++-- .../executionstep/ExecutionStepContext.java | 16 ++-- .../java/com/twilio/rest/studio/v2/Flow.java | 18 ++--- .../twilio/rest/studio/v2/FlowValidate.java | 18 ++--- .../twilio/rest/studio/v2/flow/Execution.java | 18 ++--- .../rest/studio/v2/flow/FlowRevision.java | 18 ++--- .../rest/studio/v2/flow/FlowTestUser.java | 16 ++-- .../v2/flow/execution/ExecutionContext.java | 16 ++-- .../v2/flow/execution/ExecutionStep.java | 16 ++-- .../executionstep/ExecutionStepContext.java | 16 ++-- .../com/twilio/rest/supersim/v1/Command.java | 18 ++--- .../com/twilio/rest/supersim/v1/Fleet.java | 17 ++--- .../com/twilio/rest/supersim/v1/Network.java | 16 ++-- .../supersim/v1/NetworkAccessProfile.java | 15 ++-- .../java/com/twilio/rest/supersim/v1/Sim.java | 17 ++--- .../twilio/rest/supersim/v1/SmsCommand.java | 18 ++--- .../twilio/rest/supersim/v1/UsageRecord.java | 18 ++--- .../NetworkAccessProfileNetwork.java | 16 ++-- .../rest/supersim/v1/sim/BillingPeriod.java | 18 ++--- .../java/com/twilio/rest/sync/v1/Service.java | 15 ++-- .../twilio/rest/sync/v1/service/Document.java | 16 ++-- .../twilio/rest/sync/v1/service/SyncList.java | 15 ++-- .../twilio/rest/sync/v1/service/SyncMap.java | 15 ++-- .../rest/sync/v1/service/SyncStream.java | 15 ++-- .../service/document/DocumentPermission.java | 16 ++-- .../v1/service/synclist/SyncListItem.java | 18 ++--- .../service/synclist/SyncListPermission.java | 16 ++-- .../sync/v1/service/syncmap/SyncMapItem.java | 18 ++--- .../v1/service/syncmap/SyncMapPermission.java | 16 ++-- .../v1/service/syncstream/StreamMessage.java | 16 ++-- .../twilio/rest/taskrouter/v1/Workspace.java | 17 ++--- .../taskrouter/v1/workspace/Activity.java | 15 ++-- .../rest/taskrouter/v1/workspace/Event.java | 16 ++-- .../rest/taskrouter/v1/workspace/Task.java | 17 ++--- .../taskrouter/v1/workspace/TaskChannel.java | 15 ++-- .../taskrouter/v1/workspace/TaskQueue.java | 17 ++--- .../rest/taskrouter/v1/workspace/Worker.java | 15 ++-- .../taskrouter/v1/workspace/Workflow.java | 15 ++-- .../WorkspaceCumulativeStatistics.java | 17 ++--- .../WorkspaceRealTimeStatistics.java | 16 ++-- .../v1/workspace/WorkspaceStatistics.java | 16 ++-- .../v1/workspace/task/Reservation.java | 17 ++--- .../TaskQueueCumulativeStatistics.java | 17 ++--- .../TaskQueueRealTimeStatistics.java | 16 ++-- .../taskqueue/TaskQueueStatistics.java | 16 ++-- .../taskqueue/TaskQueuesStatistics.java | 16 ++-- .../v1/workspace/worker/Reservation.java | 17 ++--- .../v1/workspace/worker/WorkerChannel.java | 16 ++-- .../v1/workspace/worker/WorkerStatistics.java | 16 ++-- .../worker/WorkersCumulativeStatistics.java | 16 ++-- .../worker/WorkersRealTimeStatistics.java | 16 ++-- .../workspace/worker/WorkersStatistics.java | 16 ++-- .../WorkflowCumulativeStatistics.java | 17 ++--- .../workflow/WorkflowRealTimeStatistics.java | 16 ++-- .../workflow/WorkflowStatistics.java | 16 ++-- .../com/twilio/rest/trunking/v1/Trunk.java | 17 ++--- .../trunking/v1/trunk/CredentialList.java | 16 ++-- .../v1/trunk/IpAccessControlList.java | 16 ++-- .../trunking/v1/trunk/OriginationUrl.java | 16 ++-- .../rest/trunking/v1/trunk/PhoneNumber.java | 17 ++--- .../rest/trunking/v1/trunk/Recording.java | 18 ++--- .../rest/trusthub/v1/CustomerProfiles.java | 17 ++--- .../com/twilio/rest/trusthub/v1/EndUser.java | 16 ++-- .../twilio/rest/trusthub/v1/EndUserType.java | 16 ++-- .../com/twilio/rest/trusthub/v1/Policies.java | 18 ++--- .../rest/trusthub/v1/SupportingDocument.java | 18 ++--- .../trusthub/v1/SupportingDocumentType.java | 16 ++-- .../rest/trusthub/v1/TrustProducts.java | 17 ++--- ...omerProfilesChannelEndpointAssignment.java | 16 ++-- .../CustomerProfilesEntityAssignments.java | 16 ++-- .../CustomerProfilesEvaluations.java | 18 ++--- ...rustProductsChannelEndpointAssignment.java | 16 ++-- .../TrustProductsEntityAssignments.java | 16 ++-- .../TrustProductsEvaluations.java | 18 ++--- .../java/com/twilio/rest/verify/v2/Form.java | 18 ++--- .../com/twilio/rest/verify/v2/Service.java | 16 ++-- .../rest/verify/v2/VerificationAttempt.java | 18 ++--- .../rest/verify/v2/VerificationTemplate.java | 16 ++-- .../rest/verify/v2/service/AccessToken.java | 16 ++-- .../twilio/rest/verify/v2/service/Entity.java | 15 ++-- .../v2/service/MessagingConfiguration.java | 16 ++-- .../rest/verify/v2/service/RateLimit.java | 15 ++-- .../rest/verify/v2/service/Verification.java | 18 ++--- .../verify/v2/service/VerificationCheck.java | 18 ++--- .../rest/verify/v2/service/Webhook.java | 18 ++--- .../verify/v2/service/entity/Challenge.java | 19 ++--- .../rest/verify/v2/service/entity/Factor.java | 18 ++--- .../verify/v2/service/entity/NewFactor.java | 18 ++--- .../entity/challenge/Notification.java | 16 ++-- .../verify/v2/service/ratelimit/Bucket.java | 16 ++-- .../com/twilio/rest/video/v1/Composition.java | 18 ++--- .../twilio/rest/video/v1/CompositionHook.java | 17 ++--- .../rest/video/v1/CompositionSettings.java | 16 ++-- .../com/twilio/rest/video/v1/Recording.java | 18 ++--- .../rest/video/v1/RecordingSettings.java | 16 ++-- .../java/com/twilio/rest/video/v1/Room.java | 16 ++-- .../rest/video/v1/room/Participant.java | 17 ++--- .../rest/video/v1/room/RecordingRules.java | 16 ++-- .../rest/video/v1/room/RoomRecording.java | 18 ++--- .../v1/room/participant/PublishedTrack.java | 18 ++--- .../v1/room/participant/SubscribeRules.java | 16 ++-- .../v1/room/participant/SubscribedTrack.java | 18 ++--- .../com/twilio/rest/voice/v1/ByocTrunk.java | 15 ++-- .../rest/voice/v1/ConnectionPolicy.java | 15 ++-- .../com/twilio/rest/voice/v1/IpRecord.java | 16 ++-- .../twilio/rest/voice/v1/SourceIpMapping.java | 16 ++-- .../ConnectionPolicyTarget.java | 16 ++-- .../dialingpermissions/BulkCountryUpdate.java | 16 ++-- .../voice/v1/dialingpermissions/Country.java | 15 ++-- .../voice/v1/dialingpermissions/Settings.java | 16 ++-- .../country/HighriskSpecialPrefix.java | 16 ++-- .../com/twilio/rest/wireless/v1/Command.java | 18 ++--- .../com/twilio/rest/wireless/v1/RatePlan.java | 18 ++--- .../java/com/twilio/rest/wireless/v1/Sim.java | 17 ++--- .../twilio/rest/wireless/v1/UsageRecord.java | 18 ++--- .../rest/wireless/v1/sim/DataSession.java | 16 ++-- .../rest/wireless/v1/sim/UsageRecord.java | 18 ++--- .../com/twilio/taskrouter/TaskRouting.java | 7 +- .../java/com/twilio/taskrouter/Workflow.java | 7 +- .../com/twilio/taskrouter/WorkflowRule.java | 9 ++- .../twilio/taskrouter/WorkflowRuleTarget.java | 9 ++- src/main/java/com/twilio/twiml/TwiML.java | 36 ++++----- .../java/com/twilio/type/FeedbackIssue.java | 7 +- src/main/java/com/twilio/type/IceServer.java | 74 ++++++++++++++++++- .../com/twilio/type/InboundCallPrice.java | 10 ++- .../java/com/twilio/type/InboundSmsPrice.java | 10 ++- .../com/twilio/type/OutboundCallPrice.java | 7 +- .../type/OutboundCallPriceWithOrigin.java | 7 +- .../com/twilio/type/OutboundPrefixPrice.java | 7 +- .../type/OutboundPrefixPriceWithOrigin.java | 7 +- .../com/twilio/type/OutboundSmsPrice.java | 7 +- .../twilio/type/PhoneNumberCapabilities.java | 7 +- .../com/twilio/type/PhoneNumberPrice.java | 9 ++- .../java/com/twilio/type/RecordingRule.java | 9 ++- .../com/twilio/type/RecordingRulesUpdate.java | 7 +- .../java/com/twilio/type/SubscribeRule.java | 9 ++- .../com/twilio/type/SubscribeRulesUpdate.java | 7 +- 430 files changed, 2414 insertions(+), 4640 deletions(-) diff --git a/pom.xml b/pom.xml index d1d6454373..e017b69560 100644 --- a/pom.xml +++ b/pom.xml @@ -135,12 +135,6 @@ false - - org.projectlombok - lombok - 1.18.12 - provided - commons-codec commons-codec @@ -415,4 +409,4 @@ oss-parent 7 - \ No newline at end of file + diff --git a/src/main/java/com/twilio/jwt/taskrouter/Policy.java b/src/main/java/com/twilio/jwt/taskrouter/Policy.java index 9420e5a855..be8aeb6b0a 100644 --- a/src/main/java/com/twilio/jwt/taskrouter/Policy.java +++ b/src/main/java/com/twilio/jwt/taskrouter/Policy.java @@ -6,18 +6,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.http.HttpMethod; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Map; import java.util.Objects; -import lombok.ToString; - @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Policy { @JsonProperty("url") @@ -100,7 +96,11 @@ public int hashCode() { return Objects.hash(url, method, queryFilter, postFilter, allowed); } - public static class Builder { + public String toString() { + return "Policy(url=" + this.getUrl() + ", method=" + this.getMethod() + ", queryFilter=" + this.getQueryFilter() + ", postFilter=" + this.getPostFilter() + ", allowed=" + this.isAllowed() + ")"; + } + + public static class Builder { private String url; private HttpMethod method = HttpMethod.GET; private Map queryFilter; diff --git a/src/main/java/com/twilio/rest/accounts/v1/AuthTokenPromotion.java b/src/main/java/com/twilio/rest/accounts/v1/AuthTokenPromotion.java index 7086c981b3..999e9650df 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/AuthTokenPromotion.java +++ b/src/main/java/com/twilio/rest/accounts/v1/AuthTokenPromotion.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AuthTokenPromotion extends Resource { private static final long serialVersionUID = 204657511452107L; @@ -184,4 +174,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "AuthTokenPromotion(accountSid=" + this.getAccountSid() + ", authToken=" + this.getAuthToken() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthToken.java b/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthToken.java index 0e589bb742..fd751cad5d 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthToken.java +++ b/src/main/java/com/twilio/rest/accounts/v1/SecondaryAuthToken.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SecondaryAuthToken extends Resource { private static final long serialVersionUID = 162357599411604L; @@ -193,4 +183,8 @@ public int hashCode() { secondaryAuthToken, url); } -} \ No newline at end of file + + public String toString() { + return "SecondaryAuthToken(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", secondaryAuthToken=" + this.getSecondaryAuthToken() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/accounts/v1/credential/Aws.java b/src/main/java/com/twilio/rest/accounts/v1/credential/Aws.java index 9128a1b42f..9f04fc0c38 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/credential/Aws.java +++ b/src/main/java/com/twilio/rest/accounts/v1/credential/Aws.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Aws extends Resource { private static final long serialVersionUID = 108884981918794L; @@ -236,4 +226,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "Aws(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKey.java b/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKey.java index c286a0d474..9fecd7ba1d 100644 --- a/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKey.java +++ b/src/main/java/com/twilio/rest/accounts/v1/credential/PublicKey.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PublicKey extends Resource { private static final long serialVersionUID = 108884981918794L; @@ -237,4 +227,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "PublicKey(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/Account.java b/src/main/java/com/twilio/rest/api/v2010/Account.java index 23c5db61ee..7e691c44f3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/Account.java +++ b/src/main/java/com/twilio/rest/api/v2010/Account.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -33,11 +25,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Account extends Resource { private static final long serialVersionUID = 82837000699633L; - public enum Status { + public String toString() { + return "Account(authToken=" + this.getAuthToken() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", ownerAccountSid=" + this.getOwnerAccountSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", subresourceUris=" + this.getSubresourceUris() + ", type=" + this.getType() + ", uri=" + this.getUri() + ")"; + } + + public enum Status { ACTIVE("active"), SUSPENDED("suspended"), CLOSED("closed"); @@ -352,4 +347,4 @@ public int hashCode() { type, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Address.java b/src/main/java/com/twilio/rest/api/v2010/account/Address.java index 677ae6213f..301271e0e7 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Address.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Address.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Address extends Resource { private static final long serialVersionUID = 59858064655653L; @@ -453,4 +443,8 @@ public int hashCode() { validated, verified); } -} \ No newline at end of file + + public String toString() { + return "Address(accountSid=" + this.getAccountSid() + ", city=" + this.getCity() + ", customerName=" + this.getCustomerName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", isoCountry=" + this.getIsoCountry() + ", postalCode=" + this.getPostalCode() + ", region=" + this.getRegion() + ", sid=" + this.getSid() + ", street=" + this.getStreet() + ", uri=" + this.getUri() + ", emergencyEnabled=" + this.getEmergencyEnabled() + ", validated=" + this.getValidated() + ", verified=" + this.getVerified() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Application.java b/src/main/java/com/twilio/rest/api/v2010/account/Application.java index 2b3e56df9a..75a3ff4327 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Application.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Application.java @@ -17,23 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Application extends Resource { private static final long serialVersionUID = 30273898590025L; @@ -507,4 +498,8 @@ public int hashCode() { voiceMethod, voiceUrl); } -} \ No newline at end of file + + public String toString() { + return "Application(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", messageStatusCallback=" + this.getMessageStatusCallback() + ", sid=" + this.getSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsStatusCallback=" + this.getSmsStatusCallback() + ", smsUrl=" + this.getSmsUrl() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", uri=" + this.getUri() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java b/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java index 2fbd858537..a7107c6f42 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/AuthorizedConnectApp.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AuthorizedConnectApp extends Resource { private static final long serialVersionUID = 67218777245125L; - public enum Permission { + public String toString() { + return "AuthorizedConnectApp(accountSid=" + this.getAccountSid() + ", connectAppCompanyName=" + this.getConnectAppCompanyName() + ", connectAppDescription=" + this.getConnectAppDescription() + ", connectAppFriendlyName=" + this.getConnectAppFriendlyName() + ", connectAppHomepageUrl=" + this.getConnectAppHomepageUrl() + ", connectAppSid=" + this.getConnectAppSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", permissions=" + this.getPermissions() + ", uri=" + this.getUri() + ")"; + } + + public enum Permission { GET_ALL("get-all"), POST_ALL("post-all"); @@ -316,4 +310,4 @@ public int hashCode() { permissions, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/AvailablePhoneNumberCountry.java b/src/main/java/com/twilio/rest/api/v2010/account/AvailablePhoneNumberCountry.java index 077a85c7de..61b0367c1b 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/AvailablePhoneNumberCountry.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/AvailablePhoneNumberCountry.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -31,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AvailablePhoneNumberCountry extends Resource { private static final long serialVersionUID = 118317602820324L; @@ -217,4 +208,8 @@ public int hashCode() { beta, subresourceUris); } -} \ No newline at end of file + + public String toString() { + return "AvailablePhoneNumberCountry(countryCode=" + this.getCountryCode() + ", country=" + this.getCountry() + ", uri=" + this.getUri() + ", beta=" + this.getBeta() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Balance.java b/src/main/java/com/twilio/rest/api/v2010/account/Balance.java index 138ceec910..bffc7dbb32 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Balance.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Balance.java @@ -16,21 +16,11 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Balance extends Resource { private static final long serialVersionUID = 237340404453814L; @@ -156,4 +146,8 @@ public int hashCode() { balance, currency); } -} \ No newline at end of file + + public String toString() { + return "Balance(accountSid=" + this.getAccountSid() + ", balance=" + this.getBalance() + ", currency=" + this.getCurrency() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Call.java b/src/main/java/com/twilio/rest/api/v2010/account/Call.java index 0fad77330f..669e07e873 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Call.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Call.java @@ -19,16 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import com.twilio.type.Endpoint; -import com.twilio.type.Twiml; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,11 +28,15 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Call extends Resource { private static final long serialVersionUID = 145756659403056L; - public enum Event { + public String toString() { + return "Call(sid=" + this.getSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", parentCallSid=" + this.getParentCallSid() + ", accountSid=" + this.getAccountSid() + ", to=" + this.getTo() + ", toFormatted=" + this.getToFormatted() + ", from=" + this.getFrom() + ", fromFormatted=" + this.getFromFormatted() + ", phoneNumberSid=" + this.getPhoneNumberSid() + ", status=" + this.getStatus() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", duration=" + this.getDuration() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", direction=" + this.getDirection() + ", answeredBy=" + this.getAnsweredBy() + ", annotation=" + this.getAnnotation() + ", apiVersion=" + this.getApiVersion() + ", forwardedFrom=" + this.getForwardedFrom() + ", groupSid=" + this.getGroupSid() + ", callerName=" + this.getCallerName() + ", queueTime=" + this.getQueueTime() + ", trunkSid=" + this.getTrunkSid() + ", uri=" + + this.getUri() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } + + public enum Event { INITIATED("initiated"), RINGING("ringing"), ANSWERED("answered"), @@ -814,4 +808,4 @@ public int hashCode() { uri, subresourceUris); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Conference.java b/src/main/java/com/twilio/rest/api/v2010/account/Conference.java index e3319e9677..728038ec71 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Conference.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Conference.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -33,11 +25,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Conference extends Resource { private static final long serialVersionUID = 34504755798279L; - public enum Status { + public String toString() { + return "Conference(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", apiVersion=" + this.getApiVersion() + ", friendlyName=" + this.getFriendlyName() + ", region=" + this.getRegion() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", uri=" + this.getUri() + ", subresourceUris=" + this.getSubresourceUris() + ", reasonConferenceEnded=" + this.getReasonConferenceEnded() + ", callSidEndingConference=" + this.getCallSidEndingConference() + ")"; + } + + public enum Status { INIT("init"), IN_PROGRESS("in-progress"), COMPLETED("completed"); @@ -423,4 +418,4 @@ public int hashCode() { reasonConferenceEnded, callSidEndingConference); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/ConnectApp.java b/src/main/java/com/twilio/rest/api/v2010/account/ConnectApp.java index 1684e63814..c51f1211dc 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/ConnectApp.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/ConnectApp.java @@ -17,27 +17,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ConnectApp extends Resource { private static final long serialVersionUID = 269497828076419L; - public enum Permission { + public String toString() { + return "ConnectApp(accountSid=" + this.getAccountSid() + ", authorizeRedirectUrl=" + this.getAuthorizeRedirectUrl() + ", companyName=" + this.getCompanyName() + ", deauthorizeCallbackMethod=" + this.getDeauthorizeCallbackMethod() + ", deauthorizeCallbackUrl=" + this.getDeauthorizeCallbackUrl() + ", description=" + this.getDescription() + ", friendlyName=" + this.getFriendlyName() + ", homepageUrl=" + this.getHomepageUrl() + ", permissions=" + this.getPermissions() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ")"; + } + + public enum Permission { GET_ALL("get-all"), POST_ALL("post-all"); @@ -375,4 +370,4 @@ public int hashCode() { sid, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java b/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java index ebe6c97bf9..0076d064be 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java @@ -18,28 +18,24 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class IncomingPhoneNumber extends Resource { private static final long serialVersionUID = 15921177976546L; - public enum AddressRequirement { + public String toString() { + return "IncomingPhoneNumber(accountSid=" + this.getAccountSid() + ", addressSid=" + this.getAddressSid() + ", addressRequirements=" + this.getAddressRequirements() + ", apiVersion=" + this.getApiVersion() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", identitySid=" + this.getIdentitySid() + ", phoneNumber=" + this.getPhoneNumber() + ", origin=" + this.getOrigin() + ", sid=" + this.getSid() + ", smsApplicationSid=" + this.getSmsApplicationSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", trunkSid=" + this.getTrunkSid() + ", uri=" + this.getUri() + ", voiceReceiveMode=" + + this.getVoiceReceiveMode() + ", voiceApplicationSid=" + this.getVoiceApplicationSid() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ", emergencyStatus=" + this.getEmergencyStatus() + ", emergencyAddressSid=" + this.getEmergencyAddressSid() + ", bundleSid=" + this.getBundleSid() + ", status=" + this.getStatus() + ")"; + } + + public enum AddressRequirement { NONE("none"), ANY("any"), LOCAL("local"), @@ -809,4 +805,4 @@ public int hashCode() { bundleSid, status); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Key.java b/src/main/java/com/twilio/rest/api/v2010/account/Key.java index 4342be8c22..41c07f45fd 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Key.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Key.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Key extends Resource { private static final long serialVersionUID = 96350302686036L; @@ -243,4 +233,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "Key(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Message.java b/src/main/java/com/twilio/rest/api/v2010/account/Message.java index e848ca2986..c0228e3841 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Message.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Message.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,11 +29,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 109887542891677L; - public enum Status { + public String toString() { + return "Message(body=" + this.getBody() + ", numSegments=" + this.getNumSegments() + ", direction=" + this.getDirection() + ", from=" + this.getFrom() + ", to=" + this.getTo() + ", dateUpdated=" + this.getDateUpdated() + ", price=" + this.getPrice() + ", errorMessage=" + this.getErrorMessage() + ", uri=" + this.getUri() + ", accountSid=" + this.getAccountSid() + ", numMedia=" + this.getNumMedia() + ", status=" + this.getStatus() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", sid=" + this.getSid() + ", dateSent=" + this.getDateSent() + ", dateCreated=" + this.getDateCreated() + ", errorCode=" + this.getErrorCode() + ", priceUnit=" + this.getPriceUnit() + ", apiVersion=" + this.getApiVersion() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } + + public enum Status { QUEUED("queued"), SENDING("sending"), SENT("sent"), @@ -801,4 +796,4 @@ public int hashCode() { apiVersion, subresourceUris); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/NewKey.java b/src/main/java/com/twilio/rest/api/v2010/account/NewKey.java index 7df3d02aa1..db133dfafc 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/NewKey.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/NewKey.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class NewKey extends Resource { private static final long serialVersionUID = 233349476807945L; @@ -191,4 +181,8 @@ public int hashCode() { dateUpdated, secret); } -} \ No newline at end of file + + public String toString() { + return "NewKey(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", secret=" + this.getSecret() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/NewSigningKey.java b/src/main/java/com/twilio/rest/api/v2010/account/NewSigningKey.java index 2f75b8959e..5767145b2e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/NewSigningKey.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/NewSigningKey.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class NewSigningKey extends Resource { private static final long serialVersionUID = 233349476807945L; @@ -192,4 +182,8 @@ public int hashCode() { dateUpdated, secret); } -} \ No newline at end of file + + public String toString() { + return "NewSigningKey(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", secret=" + this.getSecret() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Notification.java b/src/main/java/com/twilio/rest/api/v2010/account/Notification.java index 3bb6309f62..7bd4f593f3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Notification.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Notification.java @@ -17,23 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Notification extends Resource { private static final long serialVersionUID = 203437902819777L; @@ -394,4 +385,8 @@ public int hashCode() { sid, uri); } -} \ No newline at end of file + + public String toString() { + return "Notification(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", callSid=" + this.getCallSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", errorCode=" + this.getErrorCode() + ", log=" + this.getLog() + ", messageDate=" + this.getMessageDate() + ", messageText=" + this.getMessageText() + ", moreInfo=" + this.getMoreInfo() + ", requestMethod=" + this.getRequestMethod() + ", requestUrl=" + this.getRequestUrl() + ", requestVariables=" + this.getRequestVariables() + ", responseBody=" + this.getResponseBody() + ", responseHeaders=" + this.getResponseHeaders() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerId.java b/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerId.java index 2923202560..c647caf42d 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerId.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/OutgoingCallerId.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OutgoingCallerId extends Resource { private static final long serialVersionUID = 160246512577628L; @@ -289,4 +279,8 @@ public int hashCode() { phoneNumber, uri); } -} \ No newline at end of file + + public String toString() { + return "OutgoingCallerId(sid=" + this.getSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", accountSid=" + this.getAccountSid() + ", phoneNumber=" + this.getPhoneNumber() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Queue.java b/src/main/java/com/twilio/rest/api/v2010/account/Queue.java index 2c1858446d..b9ecbe4b7f 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Queue.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Queue.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Queue extends Resource { private static final long serialVersionUID = 115549588553968L; @@ -341,4 +331,8 @@ public int hashCode() { dateCreated, maxSize); } -} \ No newline at end of file + + public String toString() { + return "Queue(dateUpdated=" + this.getDateUpdated() + ", currentSize=" + this.getCurrentSize() + ", friendlyName=" + this.getFriendlyName() + ", uri=" + this.getUri() + ", accountSid=" + this.getAccountSid() + ", averageWaitTime=" + this.getAverageWaitTime() + ", sid=" + this.getSid() + ", dateCreated=" + this.getDateCreated() + ", maxSize=" + this.getMaxSize() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Recording.java b/src/main/java/com/twilio/rest/api/v2010/account/Recording.java index 35140e0057..599ba64a6b 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Recording.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Recording.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -34,11 +25,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Recording extends Resource { private static final long serialVersionUID = 90678482961517L; - public enum Status { + public String toString() { + return "Recording(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", callSid=" + this.getCallSid() + ", conferenceSid=" + this.getConferenceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", startTime=" + this.getStartTime() + ", duration=" + this.getDuration() + ", sid=" + this.getSid() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", status=" + this.getStatus() + ", channels=" + this.getChannels() + ", source=" + this.getSource() + ", errorCode=" + this.getErrorCode() + ", uri=" + this.getUri() + ", encryptionDetails=" + this.getEncryptionDetails() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } + + public enum Status { IN_PROGRESS("in-progress"), PAUSED("paused"), STOPPED("stopped"), @@ -494,4 +488,4 @@ public int hashCode() { encryptionDetails, subresourceUris); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/ShortCode.java b/src/main/java/com/twilio/rest/api/v2010/account/ShortCode.java index bda1bd64ce..35b900b901 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/ShortCode.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/ShortCode.java @@ -17,23 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ShortCode extends Resource { private static final long serialVersionUID = 186171326966142L; @@ -344,4 +335,8 @@ public int hashCode() { smsUrl, uri); } -} \ No newline at end of file + + public String toString() { + return "ShortCode(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", shortCode=" + this.getShortCode() + ", sid=" + this.getSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/SigningKey.java b/src/main/java/com/twilio/rest/api/v2010/account/SigningKey.java index c8c2302ab0..a8b4d597be 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/SigningKey.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/SigningKey.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SigningKey extends Resource { private static final long serialVersionUID = 96350302686036L; @@ -240,4 +230,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "SigningKey(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Token.java b/src/main/java/com/twilio/rest/api/v2010/account/Token.java index c5dc8a66f0..df8fb0585d 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Token.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Token.java @@ -17,24 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.IceServer; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Token extends Resource { private static final long serialVersionUID = 281090396283982L; @@ -220,4 +210,8 @@ public int hashCode() { ttl, username); } -} \ No newline at end of file + + public String toString() { + return "Token(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", iceServers=" + this.getIceServers() + ", password=" + this.getPassword() + ", ttl=" + this.getTtl() + ", username=" + this.getUsername() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Transcription.java b/src/main/java/com/twilio/rest/api/v2010/account/Transcription.java index e13e6a248e..0f8293d662 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Transcription.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Transcription.java @@ -19,28 +19,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import java.time.ZonedDateTime; import java.util.Currency; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Transcription extends Resource { private static final long serialVersionUID = 3308072321352L; - public enum Status { + public String toString() { + return "Transcription(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", duration=" + this.getDuration() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", recordingSid=" + this.getRecordingSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", transcriptionText=" + this.getTranscriptionText() + ", type=" + this.getType() + ", uri=" + this.getUri() + ")"; + } + + public enum Status { IN_PROGRESS("in-progress"), COMPLETED("completed"), FAILED("failed"); @@ -387,4 +381,4 @@ public int hashCode() { type, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/ValidationRequest.java b/src/main/java/com/twilio/rest/api/v2010/account/ValidationRequest.java index 76f21b8a97..84cc5fbaab 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/ValidationRequest.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/ValidationRequest.java @@ -16,21 +16,11 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ValidationRequest extends Resource { private static final long serialVersionUID = 163352133331334L; @@ -193,4 +183,8 @@ public int hashCode() { phoneNumber, validationCode); } -} \ No newline at end of file + + public String toString() { + return "ValidationRequest(accountSid=" + this.getAccountSid() + ", callSid=" + this.getCallSid() + ", friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", validationCode=" + this.getValidationCode() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java b/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java index b68b5ca969..d4e294593f 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java @@ -14,19 +14,11 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +27,15 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DependentPhoneNumber extends Resource { private static final long serialVersionUID = 25853317680371L; - public enum AddressRequirement { + public String toString() { + return "DependentPhoneNumber(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", voiceUrl=" + this.getVoiceUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", addressRequirements=" + this.getAddressRequirements() + ", capabilities=" + this.getCapabilities() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", apiVersion=" + this.getApiVersion() + ", smsApplicationSid=" + + this.getSmsApplicationSid() + ", voiceApplicationSid=" + this.getVoiceApplicationSid() + ", trunkSid=" + this.getTrunkSid() + ", emergencyStatus=" + this.getEmergencyStatus() + ", emergencyAddressSid=" + this.getEmergencyAddressSid() + ", uri=" + this.getUri() + ")"; + } + + public enum AddressRequirement { NONE("none"), ANY("any"), LOCAL("local"), @@ -571,4 +567,4 @@ public int hashCode() { emergencyAddressSid, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Local.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Local.java index cda3818aaa..7dcc4ee440 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Local.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Local.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Local extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -316,4 +306,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "Local(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/MachineToMachine.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/MachineToMachine.java index a282b5154f..4e9bf92504 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/MachineToMachine.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/MachineToMachine.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class MachineToMachine extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -317,4 +307,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "MachineToMachine(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Mobile.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Mobile.java index 002abb534e..6baa7ab4b0 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Mobile.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Mobile.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Mobile extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -316,4 +306,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "Mobile(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/National.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/National.java index c387c225cb..47f4109eb4 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/National.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/National.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class National extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -317,4 +307,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "National(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/SharedCost.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/SharedCost.java index 8ebb837929..6eb08638ec 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/SharedCost.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/SharedCost.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SharedCost extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -317,4 +307,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "SharedCost(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/TollFree.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/TollFree.java index 95bc971d89..e56c1669ad 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/TollFree.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/TollFree.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TollFree extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -317,4 +307,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "TollFree(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Voip.java b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Voip.java index 0947b02909..fe3a88e5ad 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Voip.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/availablephonenumbercountry/Voip.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Voip extends Resource { private static final long serialVersionUID = 16937856072206L; @@ -316,4 +306,8 @@ public int hashCode() { beta, capabilities); } -} \ No newline at end of file + + public String toString() { + return "Voip(friendlyName=" + this.getFriendlyName() + ", phoneNumber=" + this.getPhoneNumber() + ", lata=" + this.getLata() + ", locality=" + this.getLocality() + ", rateCenter=" + this.getRateCenter() + ", latitude=" + this.getLatitude() + ", longitude=" + this.getLongitude() + ", region=" + this.getRegion() + ", postalCode=" + this.getPostalCode() + ", isoCountry=" + this.getIsoCountry() + ", addressRequirements=" + this.getAddressRequirements() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Event.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Event.java index 265152943e..0c50f8ba19 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Event.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Event.java @@ -14,24 +14,14 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Event extends Resource { private static final long serialVersionUID = 85868637030157L; @@ -145,4 +135,8 @@ public int hashCode() { return Objects.hash(request, response); } -} \ No newline at end of file + + public String toString() { + return "Event(request=" + this.getRequest() + ", response=" + this.getResponse() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Feedback.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Feedback.java index ceb7c612b9..46727360cb 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Feedback.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Feedback.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Feedback extends Resource { private static final long serialVersionUID = 172313514850197L; - public enum Issues { + public String toString() { + return "Feedback(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", issues=" + this.getIssues() + ", qualityScore=" + this.getQualityScore() + ", sid=" + this.getSid() + ")"; + } + + public enum Issues { AUDIO_LATENCY("audio-latency"), DIGITS_NOT_CAPTURED("digits-not-captured"), DROPPED_CALL("dropped-call"), @@ -288,4 +282,4 @@ public int hashCode() { qualityScore, sid); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/FeedbackSummary.java b/src/main/java/com/twilio/rest/api/v2010/account/call/FeedbackSummary.java index d22ea8a14e..383eed917e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/FeedbackSummary.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/FeedbackSummary.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -37,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FeedbackSummary extends Resource { private static final long serialVersionUID = 164120127653703L; - public enum Status { + public String toString() { + return "FeedbackSummary(accountSid=" + this.getAccountSid() + ", callCount=" + this.getCallCount() + ", callFeedbackCount=" + this.getCallFeedbackCount() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endDate=" + this.getEndDate() + ", includeSubaccounts=" + this.getIncludeSubaccounts() + ", issues=" + this.getIssues() + ", qualityScoreAverage=" + this.getQualityScoreAverage() + ", qualityScoreMedian=" + this.getQualityScoreMedian() + ", qualityScoreStandardDeviation=" + this.getQualityScoreStandardDeviation() + ", sid=" + this.getSid() + ", startDate=" + this.getStartDate() + ", status=" + this.getStatus() + ")"; + } + + public enum Status { QUEUED("queued"), IN_PROGRESS("in-progress"), COMPLETED("completed"), @@ -411,4 +405,4 @@ public int hashCode() { startDate, status); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Notification.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Notification.java index 2660ee88b5..0d97c00ce3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Notification.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Notification.java @@ -17,23 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Notification extends Resource { private static final long serialVersionUID = 203437902819777L; @@ -401,4 +392,8 @@ public int hashCode() { sid, uri); } -} \ No newline at end of file + + public String toString() { + return "Notification(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", callSid=" + this.getCallSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", errorCode=" + this.getErrorCode() + ", log=" + this.getLog() + ", messageDate=" + this.getMessageDate() + ", messageText=" + this.getMessageText() + ", moreInfo=" + this.getMoreInfo() + ", requestMethod=" + this.getRequestMethod() + ", requestUrl=" + this.getRequestUrl() + ", requestVariables=" + this.getRequestVariables() + ", responseBody=" + this.getResponseBody() + ", responseHeaders=" + this.getResponseHeaders() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java index ff2079340a..9bf1479727 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -39,11 +30,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Payment extends Resource { private static final long serialVersionUID = 264986398146032L; - public enum PaymentMethod { + public String toString() { + return "Payment(accountSid=" + this.getAccountSid() + ", callSid=" + this.getCallSid() + ", sid=" + this.getSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", uri=" + this.getUri() + ")"; + } + + public enum PaymentMethod { CREDIT_CARD("credit-card"), ACH_DEBIT("ach-debit"); @@ -397,4 +391,4 @@ public int hashCode() { dateUpdated, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Recording.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Recording.java index ed949f780e..ecc754182b 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Recording.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Recording.java @@ -15,19 +15,10 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -37,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Recording extends Resource { private static final long serialVersionUID = 239666513639752L; - public enum Status { + public String toString() { + return "Recording(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", callSid=" + this.getCallSid() + ", conferenceSid=" + this.getConferenceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", startTime=" + this.getStartTime() + ", duration=" + this.getDuration() + ", sid=" + this.getSid() + ", price=" + this.getPrice() + ", uri=" + this.getUri() + ", encryptionDetails=" + this.getEncryptionDetails() + ", priceUnit=" + this.getPriceUnit() + ", status=" + this.getStatus() + ", channels=" + this.getChannels() + ", source=" + this.getSource() + ", errorCode=" + this.getErrorCode() + ", track=" + this.getTrack() + ")"; + } + + public enum Status { IN_PROGRESS("in-progress"), PAUSED("paused"), STOPPED("stopped"), @@ -564,4 +558,4 @@ public int hashCode() { errorCode, track); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/conference/Participant.java b/src/main/java/com/twilio/rest/api/v2010/account/conference/Participant.java index 6133612e20..9e6dcc33bf 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/conference/Participant.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/conference/Participant.java @@ -18,27 +18,20 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import com.twilio.type.Endpoint; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Participant extends Resource { private static final long serialVersionUID = 89883663840219L; - public enum Status { + public String toString() { + return "Participant(accountSid=" + this.getAccountSid() + ", callSid=" + this.getCallSid() + ", label=" + this.getLabel() + ", callSidToCoach=" + this.getCallSidToCoach() + ", coaching=" + this.getCoaching() + ", conferenceSid=" + this.getConferenceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endConferenceOnExit=" + this.getEndConferenceOnExit() + ", muted=" + this.getMuted() + ", hold=" + this.getHold() + ", startConferenceOnEnter=" + this.getStartConferenceOnEnter() + ", status=" + this.getStatus() + ", uri=" + this.getUri() + ")"; + } + + public enum Status { QUEUED("queued"), CONNECTING("connecting"), RINGING("ringing"), @@ -490,4 +483,4 @@ public int hashCode() { status, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/conference/Recording.java b/src/main/java/com/twilio/rest/api/v2010/account/conference/Recording.java index 53237296cc..5df3e8bbd1 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/conference/Recording.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/conference/Recording.java @@ -15,19 +15,10 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Recording extends Resource { private static final long serialVersionUID = 139030377775690L; - public enum Status { + public String toString() { + return "Recording(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", callSid=" + this.getCallSid() + ", conferenceSid=" + this.getConferenceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", startTime=" + this.getStartTime() + ", duration=" + this.getDuration() + ", sid=" + this.getSid() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", status=" + this.getStatus() + ", channels=" + this.getChannels() + ", source=" + this.getSource() + ", errorCode=" + this.getErrorCode() + ", encryptionDetails=" + this.getEncryptionDetails() + ", uri=" + this.getUri() + ")"; + } + + public enum Status { IN_PROGRESS("in-progress"), PAUSED("paused"), STOPPED("stopped"), @@ -526,4 +520,4 @@ public int hashCode() { encryptionDetails, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOn.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOn.java index f5bdfdc600..36fa44e31f 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOn.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/AssignedAddOn.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AssignedAddOn extends Resource { private static final long serialVersionUID = 62322787699673L; @@ -368,4 +358,8 @@ public int hashCode() { uri, subresourceUris); } -} \ No newline at end of file + + public String toString() { + return "AssignedAddOn(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", resourceSid=" + this.getResourceSid() + ", friendlyName=" + this.getFriendlyName() + ", description=" + this.getDescription() + ", configuration=" + this.getConfiguration() + ", uniqueName=" + this.getUniqueName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", uri=" + this.getUri() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java index 3e63f4a1f4..1cb1cab58e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java @@ -18,28 +18,24 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Local extends Resource { private static final long serialVersionUID = 272193771301446L; - public enum AddressRequirement { + public String toString() { + return "Local(accountSid=" + this.getAccountSid() + ", addressSid=" + this.getAddressSid() + ", addressRequirements=" + this.getAddressRequirements() + ", apiVersion=" + this.getApiVersion() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", identitySid=" + this.getIdentitySid() + ", phoneNumber=" + this.getPhoneNumber() + ", origin=" + this.getOrigin() + ", sid=" + this.getSid() + ", smsApplicationSid=" + this.getSmsApplicationSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", trunkSid=" + this.getTrunkSid() + ", uri=" + this.getUri() + ", voiceReceiveMode=" + + this.getVoiceReceiveMode() + ", voiceApplicationSid=" + this.getVoiceApplicationSid() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ", emergencyStatus=" + this.getEmergencyStatus() + ", emergencyAddressSid=" + this.getEmergencyAddressSid() + ", bundleSid=" + this.getBundleSid() + ", status=" + this.getStatus() + ")"; + } + + public enum AddressRequirement { NONE("none"), ANY("any"), LOCAL("local"), @@ -715,4 +711,4 @@ public int hashCode() { bundleSid, status); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java index 71354aaab0..2f99afbe73 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java @@ -18,28 +18,24 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Mobile extends Resource { private static final long serialVersionUID = 89458301105703L; - public enum AddressRequirement { + public String toString() { + return "Mobile(accountSid=" + this.getAccountSid() + ", addressSid=" + this.getAddressSid() + ", addressRequirements=" + this.getAddressRequirements() + ", apiVersion=" + this.getApiVersion() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", identitySid=" + this.getIdentitySid() + ", phoneNumber=" + this.getPhoneNumber() + ", origin=" + this.getOrigin() + ", sid=" + this.getSid() + ", smsApplicationSid=" + this.getSmsApplicationSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", trunkSid=" + this.getTrunkSid() + ", uri=" + this.getUri() + ", voiceReceiveMode=" + + this.getVoiceReceiveMode() + ", voiceApplicationSid=" + this.getVoiceApplicationSid() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ", emergencyStatus=" + this.getEmergencyStatus() + ", emergencyAddressSid=" + this.getEmergencyAddressSid() + ", bundleSid=" + this.getBundleSid() + ", status=" + this.getStatus() + ")"; + } + + public enum AddressRequirement { NONE("none"), ANY("any"), LOCAL("local"), @@ -717,4 +713,4 @@ public int hashCode() { bundleSid, status); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java index 49b7f4a121..1ab73d1f73 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java @@ -18,28 +18,24 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TollFree extends Resource { private static final long serialVersionUID = 1533658065912L; - public enum AddressRequirement { + public String toString() { + return "TollFree(accountSid=" + this.getAccountSid() + ", addressSid=" + this.getAddressSid() + ", addressRequirements=" + this.getAddressRequirements() + ", apiVersion=" + this.getApiVersion() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", identitySid=" + this.getIdentitySid() + ", phoneNumber=" + this.getPhoneNumber() + ", origin=" + this.getOrigin() + ", sid=" + this.getSid() + ", smsApplicationSid=" + this.getSmsApplicationSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", trunkSid=" + this.getTrunkSid() + ", uri=" + this.getUri() + ", voiceReceiveMode=" + + this.getVoiceReceiveMode() + ", voiceApplicationSid=" + this.getVoiceApplicationSid() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ", emergencyStatus=" + this.getEmergencyStatus() + ", emergencyAddressSid=" + this.getEmergencyAddressSid() + ", bundleSid=" + this.getBundleSid() + ", status=" + this.getStatus() + ")"; + } + + public enum AddressRequirement { NONE("none"), ANY("any"), LOCAL("local"), @@ -718,4 +714,4 @@ public int hashCode() { bundleSid, status); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/assignedaddon/AssignedAddOnExtension.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/assignedaddon/AssignedAddOnExtension.java index d658fef33a..1e76443ddb 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/assignedaddon/AssignedAddOnExtension.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/assignedaddon/AssignedAddOnExtension.java @@ -16,17 +16,8 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; /** @@ -34,7 +25,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AssignedAddOnExtension extends Resource { private static final long serialVersionUID = 254756104668429L; @@ -300,4 +290,8 @@ public int hashCode() { uri, enabled); } -} \ No newline at end of file + + public String toString() { + return "AssignedAddOnExtension(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", resourceSid=" + this.getResourceSid() + ", assignedAddOnSid=" + this.getAssignedAddOnSid() + ", friendlyName=" + this.getFriendlyName() + ", productName=" + this.getProductName() + ", uniqueName=" + this.getUniqueName() + ", uri=" + this.getUri() + ", enabled=" + this.getEnabled() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/message/Feedback.java b/src/main/java/com/twilio/rest/api/v2010/account/message/Feedback.java index f315cd9065..2abacb272a 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/message/Feedback.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/message/Feedback.java @@ -18,26 +18,20 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Feedback extends Resource { private static final long serialVersionUID = 93685573726475L; - public enum Outcome { + public String toString() { + return "Feedback(accountSid=" + this.getAccountSid() + ", messageSid=" + this.getMessageSid() + ", outcome=" + this.getOutcome() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", uri=" + this.getUri() + ")"; + } + + public enum Outcome { CONFIRMED("confirmed"), UNCONFIRMED("unconfirmed"); @@ -235,4 +229,4 @@ public int hashCode() { dateUpdated, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/message/Media.java b/src/main/java/com/twilio/rest/api/v2010/account/message/Media.java index d76ab8cad7..17f143229a 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/message/Media.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/message/Media.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Media extends Resource { private static final long serialVersionUID = 138990472819672L; @@ -283,4 +273,8 @@ public int hashCode() { sid, uri); } -} \ No newline at end of file + + public String toString() { + return "Media(accountSid=" + this.getAccountSid() + ", contentType=" + this.getContentType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", parentSid=" + this.getParentSid() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/queue/Member.java b/src/main/java/com/twilio/rest/api/v2010/account/queue/Member.java index d86837995c..5d123b3259 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/queue/Member.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/queue/Member.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Member extends Resource { private static final long serialVersionUID = 8025703048462L; @@ -266,4 +256,8 @@ public int hashCode() { waitTime, queueSid); } -} \ No newline at end of file + + public String toString() { + return "Member(callSid=" + this.getCallSid() + ", dateEnqueued=" + this.getDateEnqueued() + ", position=" + this.getPosition() + ", uri=" + this.getUri() + ", waitTime=" + this.getWaitTime() + ", queueSid=" + this.getQueueSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResult.java b/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResult.java index 42e8ccc669..24995df7c3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResult.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/recording/AddOnResult.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -33,11 +25,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AddOnResult extends Resource { private static final long serialVersionUID = 195304696893034L; - public enum Status { + public String toString() { + return "AddOnResult(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", status=" + this.getStatus() + ", addOnSid=" + this.getAddOnSid() + ", addOnConfigurationSid=" + this.getAddOnConfigurationSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", dateCompleted=" + this.getDateCompleted() + ", referenceSid=" + this.getReferenceSid() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } + + public enum Status { CANCELED("canceled"), COMPLETED("completed"), DELETED("deleted"), @@ -360,4 +355,4 @@ public int hashCode() { referenceSid, subresourceUris); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/recording/Transcription.java b/src/main/java/com/twilio/rest/api/v2010/account/recording/Transcription.java index cd249cb2d3..d7d6370df3 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/recording/Transcription.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/recording/Transcription.java @@ -19,28 +19,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import java.time.ZonedDateTime; import java.util.Currency; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Transcription extends Resource { private static final long serialVersionUID = 3308072321352L; - public enum Status { + public String toString() { + return "Transcription(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", duration=" + this.getDuration() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", recordingSid=" + this.getRecordingSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", transcriptionText=" + this.getTranscriptionText() + ", type=" + this.getType() + ", uri=" + this.getUri() + ")"; + } + + public enum Status { IN_PROGRESS("in-progress"), COMPLETED("completed"), FAILED("failed"); @@ -404,4 +398,4 @@ public int hashCode() { type, uri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/Payload.java b/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/Payload.java index d5bb2d63e4..2cd56b1936 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/Payload.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/recording/addonresult/Payload.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -32,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Payload extends Resource { private static final long serialVersionUID = 217671696000636L; @@ -362,4 +353,8 @@ public int hashCode() { referenceSid, subresourceUris); } -} \ No newline at end of file + + public String toString() { + return "Payload(sid=" + this.getSid() + ", addOnResultSid=" + this.getAddOnResultSid() + ", accountSid=" + this.getAccountSid() + ", label=" + this.getLabel() + ", addOnSid=" + this.getAddOnSid() + ", addOnConfigurationSid=" + this.getAddOnConfigurationSid() + ", contentType=" + this.getContentType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", referenceSid=" + this.getReferenceSid() + ", subresourceUris=" + this.getSubresourceUris() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialList.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialList.java index 000bd1911f..730ee66215 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialList.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/CredentialList.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -32,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CredentialList extends Resource { private static final long serialVersionUID = 214188792953524L; @@ -316,4 +307,8 @@ public int hashCode() { subresourceUris, uri); } -} \ No newline at end of file + + public String toString() { + return "CredentialList(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/Domain.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/Domain.java index ddeab5b8a5..abac2faabe 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/Domain.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/Domain.java @@ -17,14 +17,7 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +26,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Domain extends Resource { private static final long serialVersionUID = 137380357832668L; @@ -521,4 +513,8 @@ public int hashCode() { byocTrunkSid, emergencyCallerSid); } -} \ No newline at end of file + + public String toString() { + return "Domain(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", authType=" + this.getAuthType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", domainName=" + this.getDomainName() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceStatusCallbackMethod=" + this.getVoiceStatusCallbackMethod() + ", voiceStatusCallbackUrl=" + this.getVoiceStatusCallbackUrl() + ", voiceUrl=" + this.getVoiceUrl() + ", subresourceUris=" + this.getSubresourceUris() + ", sipRegistration=" + this.getSipRegistration() + ", emergencyCallingEnabled=" + this.getEmergencyCallingEnabled() + ", secure=" + this.getSecure() + ", byocTrunkSid=" + this.getByocTrunkSid() + ", emergencyCallerSid=" + this.getEmergencyCallerSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlList.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlList.java index f220f476ae..029459725c 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlList.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/IpAccessControlList.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -32,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class IpAccessControlList extends Resource { private static final long serialVersionUID = 214188792953524L; @@ -311,4 +302,8 @@ public int hashCode() { subresourceUris, uri); } -} \ No newline at end of file + + public String toString() { + return "IpAccessControlList(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/Credential.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/Credential.java index accfb21d58..af2a9fdfe4 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/Credential.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/credentiallist/Credential.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 207131851434233L; @@ -351,4 +341,8 @@ public int hashCode() { dateUpdated, uri); } -} \ No newline at end of file + + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", credentialListSid=" + this.getCredentialListSid() + ", username=" + this.getUsername() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMapping.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMapping.java index 4e9a9e5cea..3d0da15033 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMapping.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/CredentialListMapping.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CredentialListMapping extends Resource { private static final long serialVersionUID = 124631283719595L; @@ -316,4 +306,8 @@ public int hashCode() { sid, uri); } -} \ No newline at end of file + + public String toString() { + return "CredentialListMapping(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", domainSid=" + this.getDomainSid() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMapping.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMapping.java index 9de21a022a..dc58a6aa24 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMapping.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/IpAccessControlListMapping.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class IpAccessControlListMapping extends Resource { private static final long serialVersionUID = 124631283719595L; @@ -316,4 +306,8 @@ public int hashCode() { sid, uri); } -} \ No newline at end of file + + public String toString() { + return "IpAccessControlListMapping(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", domainSid=" + this.getDomainSid() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMapping.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMapping.java index 894018099c..311bf224b1 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMapping.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsCredentialListMapping.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AuthCallsCredentialListMapping extends Resource { private static final long serialVersionUID = 271887954844194L; @@ -285,4 +275,8 @@ public int hashCode() { friendlyName, sid); } -} \ No newline at end of file + + public String toString() { + return "AuthCallsCredentialListMapping(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMapping.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMapping.java index b51a5e275a..a81103ce14 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMapping.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtypecalls/AuthCallsIpAccessControlListMapping.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AuthCallsIpAccessControlListMapping extends Resource { private static final long serialVersionUID = 271887954844194L; @@ -293,4 +283,8 @@ public int hashCode() { friendlyName, sid); } -} \ No newline at end of file + + public String toString() { + return "AuthCallsIpAccessControlListMapping(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMapping.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMapping.java index 32a510f156..f93bada256 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMapping.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/domain/authtypes/authtyperegistrations/AuthRegistrationsCredentialListMapping.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AuthRegistrationsCredentialListMapping extends Resource { private static final long serialVersionUID = 271887954844194L; @@ -293,4 +283,8 @@ public int hashCode() { friendlyName, sid); } -} \ No newline at end of file + + public String toString() { + return "AuthRegistrationsCredentialListMapping(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddress.java b/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddress.java index 3f1fb4ad02..8fba27df46 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddress.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/sip/ipaccesscontrollist/IpAddress.java @@ -17,22 +17,12 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class IpAddress extends Resource { private static final long serialVersionUID = 129871129530105L; @@ -398,4 +388,8 @@ public int hashCode() { dateUpdated, uri); } -} \ No newline at end of file + + public String toString() { + return "IpAddress(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", ipAddress=" + this.getIpAddress() + ", cidrPrefixLength=" + this.getCidrPrefixLength() + ", ipAccessControlListSid=" + this.getIpAccessControlListSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", uri=" + this.getUri() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java index 30725fd52b..9f29405502 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Record extends Resource { private static final long serialVersionUID = 112524731658607L; - public enum Category { + public String toString() { + return "Record(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -607,4 +602,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java index 05816d061d..6508dbc8bb 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java @@ -18,27 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Trigger extends Resource { private static final long serialVersionUID = 174561249107274L; - public enum UsageCategory { + public String toString() { + return "Trigger(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", callbackMethod=" + this.getCallbackMethod() + ", callbackUrl=" + this.getCallbackUrl() + ", currentValue=" + this.getCurrentValue() + ", dateCreated=" + this.getDateCreated() + ", dateFired=" + this.getDateFired() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", recurring=" + this.getRecurring() + ", sid=" + this.getSid() + ", triggerBy=" + this.getTriggerBy() + ", triggerValue=" + this.getTriggerValue() + ", uri=" + this.getUri() + ", usageCategory=" + this.getUsageCategory() + ", usageRecordUri=" + this.getUsageRecordUri() + ")"; + } + + public enum UsageCategory { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -771,4 +766,4 @@ public int hashCode() { usageCategory, usageRecordUri); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java index c6ca4042ef..44c5eca6b0 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AllTime extends Resource { private static final long serialVersionUID = 139859396821865L; - public enum Category { + public String toString() { + return "AllTime(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -607,4 +602,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java index f5bd0ce6a6..5d1123716a 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Daily extends Resource { private static final long serialVersionUID = 244970500292554L; - public enum Category { + public String toString() { + return "Daily(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -607,4 +602,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java index 0b3caebb55..2c1cd8cd84 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class LastMonth extends Resource { private static final long serialVersionUID = 263660164098858L; - public enum Category { + public String toString() { + return "LastMonth(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -608,4 +603,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java index db65c6744a..ab95512ac2 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Monthly extends Resource { private static final long serialVersionUID = 189664300873381L; - public enum Category { + public String toString() { + return "Monthly(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -607,4 +602,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java index a4a1dcc908..d69c1ce82f 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ThisMonth extends Resource { private static final long serialVersionUID = 238486971620797L; - public enum Category { + public String toString() { + return "ThisMonth(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -608,4 +603,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java index 5927075a9b..0d4bc90505 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Today extends Resource { private static final long serialVersionUID = 20731854742344L; - public enum Category { + public String toString() { + return "Today(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -607,4 +602,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java index 2ed899418e..bb926a66d0 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Yearly extends Resource { private static final long serialVersionUID = 221620673077418L; - public enum Category { + public String toString() { + return "Yearly(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -607,4 +602,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java index 6c0c7075a1..44d5287745 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Yesterday extends Resource { private static final long serialVersionUID = 99746306378230L; - public enum Category { + public String toString() { + return "Yesterday(accountSid=" + this.getAccountSid() + ", apiVersion=" + this.getApiVersion() + ", asOf=" + this.getAsOf() + ", category=" + this.getCategory() + ", count=" + this.getCount() + ", countUnit=" + this.getCountUnit() + ", description=" + this.getDescription() + ", endDate=" + this.getEndDate() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", startDate=" + this.getStartDate() + ", subresourceUris=" + this.getSubresourceUris() + ", uri=" + this.getUri() + ", usage=" + this.getUsage() + ", usageUnit=" + this.getUsageUnit() + ")"; + } + + public enum Category { AGENT_CONFERENCE("agent-conference"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), AUTHY_AUTHENTICATIONS("authy-authentications"), @@ -608,4 +603,4 @@ public int hashCode() { usage, usageUnit); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/Assistant.java b/src/main/java/com/twilio/rest/autopilot/v1/Assistant.java index 5347bc6de4..4db2f6b9d2 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/Assistant.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/Assistant.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Assistant extends Resource { private static final long serialVersionUID = 244014125424501L; @@ -359,4 +350,8 @@ public int hashCode() { callbackUrl, callbackEvents); } -} \ No newline at end of file + + public String toString() { + return "Assistant(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", latestModelBuildSid=" + this.getLatestModelBuildSid() + ", links=" + this.getLinks() + ", logQueries=" + this.getLogQueries() + ", developmentStage=" + this.getDevelopmentStage() + ", needsModelBuild=" + this.getNeedsModelBuild() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ", callbackUrl=" + this.getCallbackUrl() + ", callbackEvents=" + this.getCallbackEvents() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/RestoreAssistant.java b/src/main/java/com/twilio/rest/autopilot/v1/RestoreAssistant.java index 6e084d1773..6b7a7b6d9f 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/RestoreAssistant.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/RestoreAssistant.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RestoreAssistant extends Resource { private static final long serialVersionUID = 267361082192414L; @@ -291,4 +281,8 @@ public int hashCode() { callbackUrl, callbackEvents); } -} \ No newline at end of file + + public String toString() { + return "RestoreAssistant(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", uniqueName=" + this.getUniqueName() + ", friendlyName=" + this.getFriendlyName() + ", needsModelBuild=" + this.getNeedsModelBuild() + ", latestModelBuildSid=" + this.getLatestModelBuildSid() + ", logQueries=" + this.getLogQueries() + ", developmentStage=" + this.getDevelopmentStage() + ", callbackUrl=" + this.getCallbackUrl() + ", callbackEvents=" + this.getCallbackEvents() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Defaults.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Defaults.java index f6f143ab18..058b762ab1 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Defaults.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Defaults.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Defaults extends Resource { private static final long serialVersionUID = 3179724176697L; @@ -182,4 +172,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "Defaults(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Dialogue.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Dialogue.java index 820f7bc3c1..d59f3d633c 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Dialogue.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Dialogue.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Dialogue extends Resource { private static final long serialVersionUID = 58246367939830L; @@ -188,4 +178,8 @@ public int hashCode() { data, url); } -} \ No newline at end of file + + public String toString() { + return "Dialogue(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", data=" + this.getData() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/FieldType.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/FieldType.java index f10a0c068e..8f01f1cb17 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/FieldType.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/FieldType.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FieldType extends Resource { private static final long serialVersionUID = 595362134429L; @@ -300,4 +291,8 @@ public int hashCode() { uniqueName, url); } -} \ No newline at end of file + + public String toString() { + return "FieldType(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", links=" + this.getLinks() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/ModelBuild.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/ModelBuild.java index c3a9d2620c..b9ec7f37d9 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/ModelBuild.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/ModelBuild.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -39,11 +30,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ModelBuild extends Resource { private static final long serialVersionUID = 48078492703405L; - public enum Status { + public String toString() { + return "ModelBuild(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ", buildDuration=" + this.getBuildDuration() + ", errorCode=" + this.getErrorCode() + ")"; + } + + public enum Status { ENQUEUED("enqueued"), BUILDING("building"), COMPLETED("completed"), @@ -343,4 +337,4 @@ public int hashCode() { buildDuration, errorCode); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Query.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Query.java index aa05998270..f8d9049b91 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Query.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Query.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Query extends Resource { private static final long serialVersionUID = 161972386699881L; @@ -388,4 +378,8 @@ public int hashCode() { sourceChannel, dialogueSid); } -} \ No newline at end of file + + public String toString() { + return "Query(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", results=" + this.getResults() + ", language=" + this.getLanguage() + ", modelBuildSid=" + this.getModelBuildSid() + ", query=" + this.getQuery() + ", sampleSid=" + this.getSampleSid() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", url=" + this.getUrl() + ", sourceChannel=" + this.getSourceChannel() + ", dialogueSid=" + this.getDialogueSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/StyleSheet.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/StyleSheet.java index bb172f8966..ade53a7d45 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/StyleSheet.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/StyleSheet.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class StyleSheet extends Resource { private static final long serialVersionUID = 3179724176697L; @@ -182,4 +172,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "StyleSheet(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Task.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Task.java index 3bf090d43a..29ba128f36 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Task.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Task.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Task extends Resource { private static final long serialVersionUID = 120802226226536L; @@ -314,4 +305,8 @@ public int hashCode() { actionsUrl, url); } -} \ No newline at end of file + + public String toString() { + return "Task(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", links=" + this.getLinks() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", actionsUrl=" + this.getActionsUrl() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Webhook.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Webhook.java index 936e33a134..b18127ebeb 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/Webhook.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/Webhook.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 37970944416419L; @@ -321,4 +311,8 @@ public int hashCode() { webhookUrl, webhookMethod); } -} \ No newline at end of file + + public String toString() { + return "Webhook(url=" + this.getUrl() + ", accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", events=" + this.getEvents() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/fieldtype/FieldValue.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/fieldtype/FieldValue.java index 9599519776..1d6764eb34 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/fieldtype/FieldValue.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/fieldtype/FieldValue.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FieldValue extends Resource { private static final long serialVersionUID = 196387084273361L; @@ -320,4 +310,8 @@ public int hashCode() { url, synonymOf); } -} \ No newline at end of file + + public String toString() { + return "FieldValue(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", fieldTypeSid=" + this.getFieldTypeSid() + ", language=" + this.getLanguage() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", value=" + this.getValue() + ", url=" + this.getUrl() + ", synonymOf=" + this.getSynonymOf() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Field.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Field.java index d184554e7c..56fc75db56 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Field.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Field.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Field extends Resource { private static final long serialVersionUID = 236424306351624L; @@ -310,4 +300,8 @@ public int hashCode() { uniqueName, url); } -} \ No newline at end of file + + public String toString() { + return "Field(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", fieldType=" + this.getFieldType() + ", taskSid=" + this.getTaskSid() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Sample.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Sample.java index 1c89062847..ad0c48aec5 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Sample.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/Sample.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Sample extends Resource { private static final long serialVersionUID = 250546054765914L; @@ -335,4 +325,8 @@ public int hashCode() { url, sourceChannel); } -} \ No newline at end of file + + public String toString() { + return "Sample(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", taskSid=" + this.getTaskSid() + ", language=" + this.getLanguage() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", taggedText=" + this.getTaggedText() + ", url=" + this.getUrl() + ", sourceChannel=" + this.getSourceChannel() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskActions.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskActions.java index d1f93b9926..513a31dd20 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskActions.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskActions.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskActions extends Resource { private static final long serialVersionUID = 212176093735390L; @@ -208,4 +198,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "TaskActions(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", taskSid=" + this.getTaskSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskStatistics.java b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskStatistics.java index 3abd4e76ce..e245998afa 100644 --- a/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskStatistics.java +++ b/src/main/java/com/twilio/rest/autopilot/v1/assistant/task/TaskStatistics.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskStatistics extends Resource { private static final long serialVersionUID = 52568493998911L; @@ -205,4 +195,8 @@ public int hashCode() { fieldsCount, url); } -} \ No newline at end of file + + public String toString() { + return "TaskStatistics(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", taskSid=" + this.getTaskSid() + ", samplesCount=" + this.getSamplesCount() + ", fieldsCount=" + this.getFieldsCount() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/Export.java b/src/main/java/com/twilio/rest/bulkexports/v1/Export.java index 6c022342c0..d571437ef5 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/Export.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/Export.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -31,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Export extends Resource { private static final long serialVersionUID = 249832685506996L; @@ -151,4 +142,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Export(resourceType=" + this.getResourceType() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/ExportConfiguration.java b/src/main/java/com/twilio/rest/bulkexports/v1/ExportConfiguration.java index ed0a790254..08e3fe6e0e 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/ExportConfiguration.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/ExportConfiguration.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExportConfiguration extends Resource { private static final long serialVersionUID = 121290827357040L; @@ -193,4 +183,8 @@ public int hashCode() { resourceType, url); } -} \ No newline at end of file + + public String toString() { + return "ExportConfiguration(enabled=" + this.getEnabled() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", resourceType=" + this.getResourceType() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/export/Day.java b/src/main/java/com/twilio/rest/bulkexports/v1/export/Day.java index a0f4c396e7..64648193ec 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/export/Day.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/export/Day.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Day extends Resource { private static final long serialVersionUID = 101410619433718L; @@ -209,4 +199,8 @@ public int hashCode() { friendlyName, resourceType); } -} \ No newline at end of file + + public String toString() { + return "Day(redirectTo=" + this.getRedirectTo() + ", day=" + this.getDay() + ", size=" + this.getSize() + ", createDate=" + this.getCreateDate() + ", friendlyName=" + this.getFriendlyName() + ", resourceType=" + this.getResourceType() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java b/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java index 0d38deb58c..22d15c80f5 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/export/ExportCustomJob.java @@ -14,29 +14,23 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExportCustomJob extends Resource { private static final long serialVersionUID = 83292928964953L; - public enum Status { + public String toString() { + return "ExportCustomJob(friendlyName=" + this.getFriendlyName() + ", resourceType=" + this.getResourceType() + ", startDay=" + this.getStartDay() + ", endDay=" + this.getEndDay() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", email=" + this.getEmail() + ", jobSid=" + this.getJobSid() + ", details=" + this.getDetails() + ", jobQueuePosition=" + this.getJobQueuePosition() + ", estimatedCompletionTime=" + this.getEstimatedCompletionTime() + ")"; + } + + public enum Status { ERRORDURINGRUN("ErrorDuringRun"), SUBMITTED("Submitted"), RUNNING("Running"), @@ -349,4 +343,4 @@ public int hashCode() { jobQueuePosition, estimatedCompletionTime); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java b/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java index bfe395f71f..ae456fdb4b 100644 --- a/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java +++ b/src/main/java/com/twilio/rest/bulkexports/v1/export/Job.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,11 +24,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Job extends Resource { private static final long serialVersionUID = 238574679946947L; - public enum Status { + public String toString() { + return "Job(resourceType=" + this.getResourceType() + ", friendlyName=" + this.getFriendlyName() + ", details=" + this.getDetails() + ", startDay=" + this.getStartDay() + ", endDay=" + this.getEndDay() + ", jobSid=" + this.getJobSid() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", email=" + this.getEmail() + ", url=" + this.getUrl() + ", jobQueuePosition=" + this.getJobQueuePosition() + ", estimatedCompletionTime=" + this.getEstimatedCompletionTime() + ")"; + } + + public enum Status { ERRORDURINGRUN("ErrorDuringRun"), SUBMITTED("Submitted"), RUNNING("Running"), @@ -342,4 +336,4 @@ public int hashCode() { jobQueuePosition, estimatedCompletionTime); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v1/Credential.java b/src/main/java/com/twilio/rest/chat/v1/Credential.java index 40a1d570e0..43e26a2229 100644 --- a/src/main/java/com/twilio/rest/chat/v1/Credential.java +++ b/src/main/java/com/twilio/rest/chat/v1/Credential.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 133884911230690L; - public enum PushService { + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", sandbox=" + this.getSandbox() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum PushService { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -292,4 +286,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v1/Service.java b/src/main/java/com/twilio/rest/chat/v1/Service.java index ef2317ac0e..8b6f0977fa 100644 --- a/src/main/java/com/twilio/rest/chat/v1/Service.java +++ b/src/main/java/com/twilio/rest/chat/v1/Service.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,7 +26,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 209287578457944L; @@ -471,4 +461,9 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", defaultServiceRoleSid=" + this.getDefaultServiceRoleSid() + ", defaultChannelRoleSid=" + this.getDefaultChannelRoleSid() + ", defaultChannelCreatorRoleSid=" + this.getDefaultChannelCreatorRoleSid() + ", readStatusEnabled=" + this.getReadStatusEnabled() + ", reachabilityEnabled=" + this.getReachabilityEnabled() + ", typingIndicatorTimeout=" + this.getTypingIndicatorTimeout() + ", consumptionReportInterval=" + this.getConsumptionReportInterval() + ", limits=" + this.getLimits() + ", webhooks=" + this.getWebhooks() + ", preWebhookUrl=" + this.getPreWebhookUrl() + ", postWebhookUrl=" + this.getPostWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", webhookFilters=" + this.getWebhookFilters() + ", notifications=" + this.getNotifications() + ", url=" + + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/Channel.java b/src/main/java/com/twilio/rest/chat/v1/service/Channel.java index fedc488c13..e690989e50 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/Channel.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/Channel.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Channel extends Resource { private static final long serialVersionUID = 275623534063843L; - public enum ChannelType { + public String toString() { + return "Channel(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", attributes=" + this.getAttributes() + ", type=" + this.getType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ", membersCount=" + this.getMembersCount() + ", messagesCount=" + this.getMessagesCount() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum ChannelType { PUBLIC("public"), PRIVATE("private"); @@ -389,4 +384,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/Role.java b/src/main/java/com/twilio/rest/chat/v1/service/Role.java index 33e757eee3..6ad4131231 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/Role.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/Role.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Role extends Resource { private static final long serialVersionUID = 78785177979928L; - public enum RoleType { + public String toString() { + return "Role(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", permissions=" + this.getPermissions() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum RoleType { CHANNEL("channel"), DEPLOYMENT("deployment"); @@ -321,4 +315,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/User.java b/src/main/java/com/twilio/rest/chat/v1/service/User.java index 84f91d8148..9a276c02ed 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/User.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/User.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 15176818292650L; @@ -369,4 +360,8 @@ public int hashCode() { links, url); } -} \ No newline at end of file + + public String toString() { + return "User(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", attributes=" + this.getAttributes() + ", friendlyName=" + this.getFriendlyName() + ", roleSid=" + this.getRoleSid() + ", identity=" + this.getIdentity() + ", isOnline=" + this.getIsOnline() + ", isNotifiable=" + this.getIsNotifiable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", joinedChannelsCount=" + this.getJoinedChannelsCount() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/channel/Invite.java b/src/main/java/com/twilio/rest/chat/v1/service/channel/Invite.java index c4633df7d1..88b1c730c2 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/channel/Invite.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/channel/Invite.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Invite extends Resource { private static final long serialVersionUID = 189960368613614L; @@ -300,4 +290,8 @@ public int hashCode() { createdBy, url); } -} \ No newline at end of file + + public String toString() { + return "Invite(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", createdBy=" + this.getCreatedBy() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/channel/Member.java b/src/main/java/com/twilio/rest/chat/v1/service/channel/Member.java index 00ab70bedf..87f8abb498 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/channel/Member.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/channel/Member.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Member extends Resource { private static final long serialVersionUID = 102574959310114L; @@ -334,4 +324,8 @@ public int hashCode() { lastConsumptionTimestamp, url); } -} \ No newline at end of file + + public String toString() { + return "Member(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", lastConsumptionTimestamp=" + this.getLastConsumptionTimestamp() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/channel/Message.java b/src/main/java/com/twilio/rest/chat/v1/service/channel/Message.java index beb6d55be1..fff4158872 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/channel/Message.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/channel/Message.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 68490171213295L; - public enum OrderType { + public String toString() { + return "Message(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", attributes=" + this.getAttributes() + ", serviceSid=" + this.getServiceSid() + ", to=" + this.getTo() + ", channelSid=" + this.getChannelSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", wasEdited=" + this.getWasEdited() + ", from=" + this.getFrom() + ", body=" + this.getBody() + ", index=" + this.getIndex() + ", url=" + this.getUrl() + ")"; + } + + public enum OrderType { ASC("asc"), DESC("desc"); @@ -388,4 +382,4 @@ public int hashCode() { index, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v1/service/user/UserChannel.java b/src/main/java/com/twilio/rest/chat/v1/service/user/UserChannel.java index 17fc4c092b..b8063bed39 100644 --- a/src/main/java/com/twilio/rest/chat/v1/service/user/UserChannel.java +++ b/src/main/java/com/twilio/rest/chat/v1/service/user/UserChannel.java @@ -17,25 +17,20 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserChannel extends Resource { private static final long serialVersionUID = 254880238496884L; - public enum ChannelStatus { + public String toString() { + return "UserChannel(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", channelSid=" + this.getChannelSid() + ", memberSid=" + this.getMemberSid() + ", status=" + this.getStatus() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", unreadMessagesCount=" + this.getUnreadMessagesCount() + ", links=" + this.getLinks() + ")"; + } + + public enum ChannelStatus { JOINED("joined"), INVITED("invited"), NOT_PARTICIPATING("not_participating"); @@ -255,4 +250,4 @@ public int hashCode() { unreadMessagesCount, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/Credential.java b/src/main/java/com/twilio/rest/chat/v2/Credential.java index 6994ddc877..823a25d334 100644 --- a/src/main/java/com/twilio/rest/chat/v2/Credential.java +++ b/src/main/java/com/twilio/rest/chat/v2/Credential.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 133884911230690L; - public enum PushService { + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", sandbox=" + this.getSandbox() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum PushService { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -292,4 +286,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/Service.java b/src/main/java/com/twilio/rest/chat/v2/Service.java index 7048c1604f..413ab55d1e 100644 --- a/src/main/java/com/twilio/rest/chat/v2/Service.java +++ b/src/main/java/com/twilio/rest/chat/v2/Service.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,7 +26,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 81815704097903L; @@ -501,4 +491,9 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", defaultServiceRoleSid=" + this.getDefaultServiceRoleSid() + ", defaultChannelRoleSid=" + this.getDefaultChannelRoleSid() + ", defaultChannelCreatorRoleSid=" + this.getDefaultChannelCreatorRoleSid() + ", readStatusEnabled=" + this.getReadStatusEnabled() + ", reachabilityEnabled=" + this.getReachabilityEnabled() + ", typingIndicatorTimeout=" + this.getTypingIndicatorTimeout() + ", consumptionReportInterval=" + this.getConsumptionReportInterval() + ", limits=" + this.getLimits() + ", preWebhookUrl=" + this.getPreWebhookUrl() + ", postWebhookUrl=" + this.getPostWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", webhookFilters=" + this.getWebhookFilters() + ", preWebhookRetryCount=" + this.getPreWebhookRetryCount() + ", postWebhookRetryCount=" + + this.getPostWebhookRetryCount() + ", notifications=" + this.getNotifications() + ", media=" + this.getMedia() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/Binding.java b/src/main/java/com/twilio/rest/chat/v2/service/Binding.java index 129489bb93..a1855a51ff 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/Binding.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/Binding.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Binding extends Resource { private static final long serialVersionUID = 102481637129176L; - public enum BindingType { + public String toString() { + return "Binding(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endpoint=" + this.getEndpoint() + ", identity=" + this.getIdentity() + ", credentialSid=" + this.getCredentialSid() + ", bindingType=" + this.getBindingType() + ", messageTypes=" + this.getMessageTypes() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum BindingType { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -337,4 +332,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/Channel.java b/src/main/java/com/twilio/rest/chat/v2/service/Channel.java index fbc39d2d71..7a9ccd8985 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/Channel.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/Channel.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Channel extends Resource { private static final long serialVersionUID = 275623534063843L; - public enum ChannelType { + public String toString() { + return "Channel(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", attributes=" + this.getAttributes() + ", type=" + this.getType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ", membersCount=" + this.getMembersCount() + ", messagesCount=" + this.getMessagesCount() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum ChannelType { PUBLIC("public"), PRIVATE("private"); @@ -415,4 +410,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/Role.java b/src/main/java/com/twilio/rest/chat/v2/service/Role.java index 4da3ef01f8..e34c76e195 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/Role.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/Role.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Role extends Resource { private static final long serialVersionUID = 78785177979928L; - public enum RoleType { + public String toString() { + return "Role(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", permissions=" + this.getPermissions() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum RoleType { CHANNEL("channel"), DEPLOYMENT("deployment"); @@ -321,4 +315,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/User.java b/src/main/java/com/twilio/rest/chat/v2/service/User.java index 97dfc807fb..067916585a 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/User.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/User.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 15176818292650L; - public enum WebhookEnabledType { + public String toString() { + return "User(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", attributes=" + this.getAttributes() + ", friendlyName=" + this.getFriendlyName() + ", roleSid=" + this.getRoleSid() + ", identity=" + this.getIdentity() + ", isOnline=" + this.getIsOnline() + ", isNotifiable=" + this.getIsNotifiable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", joinedChannelsCount=" + this.getJoinedChannelsCount() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -395,4 +390,4 @@ public int hashCode() { links, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/Invite.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/Invite.java index bfd1ba847b..a5cd262d22 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/Invite.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/Invite.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Invite extends Resource { private static final long serialVersionUID = 189960368613614L; @@ -300,4 +290,8 @@ public int hashCode() { createdBy, url); } -} \ No newline at end of file + + public String toString() { + return "Invite(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", createdBy=" + this.getCreatedBy() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/Member.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/Member.java index 75aa948f60..8179d86aa4 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/Member.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/Member.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Member extends Resource { private static final long serialVersionUID = 35425349237098L; - public enum WebhookEnabledType { + public String toString() { + return "Member(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", lastConsumptionTimestamp=" + this.getLastConsumptionTimestamp() + ", url=" + this.getUrl() + ", attributes=" + this.getAttributes() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -374,4 +368,4 @@ public int hashCode() { url, attributes); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java index a155934480..09292dcc92 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 240696203452729L; - public enum OrderType { + public String toString() { + return "Message(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", attributes=" + this.getAttributes() + ", serviceSid=" + this.getServiceSid() + ", to=" + this.getTo() + ", channelSid=" + this.getChannelSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", lastUpdatedBy=" + this.getLastUpdatedBy() + ", wasEdited=" + this.getWasEdited() + ", from=" + this.getFrom() + ", body=" + this.getBody() + ", index=" + this.getIndex() + ", type=" + this.getType() + ", media=" + this.getMedia() + ", url=" + this.getUrl() + ")"; + } + + public enum OrderType { ASC("asc"), DESC("desc"); @@ -455,4 +449,4 @@ public int hashCode() { media, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java index ef8c79563f..bf17237fa2 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 142993163058456L; - public enum Type { + public String toString() { + return "Webhook(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", channelSid=" + this.getChannelSid() + ", type=" + this.getType() + ", url=" + this.getUrl() + ", configuration=" + this.getConfiguration() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum Type { WEBHOOK("webhook"), TRIGGER("trigger"), STUDIO("studio"); @@ -361,4 +355,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/user/UserBinding.java b/src/main/java/com/twilio/rest/chat/v2/service/user/UserBinding.java index 10533aaf03..918d788b13 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/user/UserBinding.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/user/UserBinding.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserBinding extends Resource { private static final long serialVersionUID = 241481961692245L; - public enum BindingType { + public String toString() { + return "UserBinding(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endpoint=" + this.getEndpoint() + ", identity=" + this.getIdentity() + ", userSid=" + this.getUserSid() + ", credentialSid=" + this.getCredentialSid() + ", bindingType=" + this.getBindingType() + ", messageTypes=" + this.getMessageTypes() + ", url=" + this.getUrl() + ")"; + } + + public enum BindingType { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -344,4 +338,4 @@ public int hashCode() { messageTypes, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java index 5786d11978..da80b00e2d 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java @@ -17,14 +17,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,11 +24,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserChannel extends Resource { private static final long serialVersionUID = 97342858560464L; - public enum ChannelStatus { + public String toString() { + return "UserChannel(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", channelSid=" + this.getChannelSid() + ", userSid=" + this.getUserSid() + ", memberSid=" + this.getMemberSid() + ", status=" + this.getStatus() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", unreadMessagesCount=" + this.getUnreadMessagesCount() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ", notificationLevel=" + this.getNotificationLevel() + ")"; + } + + public enum ChannelStatus { JOINED("joined"), INVITED("invited"), NOT_PARTICIPATING("not_participating"); @@ -374,4 +369,4 @@ public int hashCode() { url, notificationLevel); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/Configuration.java b/src/main/java/com/twilio/rest/conversations/v1/Configuration.java index 737b6880c8..e450e5fc28 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/Configuration.java +++ b/src/main/java/com/twilio/rest/conversations/v1/Configuration.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -31,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Configuration extends Resource { private static final long serialVersionUID = 46775139156552L; @@ -227,4 +218,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Configuration(accountSid=" + this.getAccountSid() + ", defaultChatServiceSid=" + this.getDefaultChatServiceSid() + ", defaultMessagingServiceSid=" + this.getDefaultMessagingServiceSid() + ", defaultInactiveTimer=" + this.getDefaultInactiveTimer() + ", defaultClosedTimer=" + this.getDefaultClosedTimer() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/Conversation.java b/src/main/java/com/twilio/rest/conversations/v1/Conversation.java index fd3c7cb65c..da34601722 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/Conversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/Conversation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Conversation extends Resource { private static final long serialVersionUID = 166881016060302L; - public enum WebhookEnabledType { + public String toString() { + return "Conversation(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", attributes=" + this.getAttributes() + ", state=" + this.getState() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", timers=" + this.getTimers() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", bindings=" + this.getBindings() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -413,4 +407,4 @@ public int hashCode() { links, bindings); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/Credential.java b/src/main/java/com/twilio/rest/conversations/v1/Credential.java index 7bc3389aef..3e5afb54d5 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/Credential.java +++ b/src/main/java/com/twilio/rest/conversations/v1/Credential.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 225197611451747L; - public enum PushType { + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", sandbox=" + this.getSandbox() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum PushType { APN("apn"), GCM("gcm"), FCM("fcm"); @@ -292,4 +286,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/ParticipantConversation.java b/src/main/java/com/twilio/rest/conversations/v1/ParticipantConversation.java index 1cd0b6214d..24495a9ed4 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/ParticipantConversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/ParticipantConversation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -34,11 +25,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ParticipantConversation extends Resource { private static final long serialVersionUID = 31437574372222L; - public enum State { + public String toString() { + return "ParticipantConversation(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", participantSid=" + this.getParticipantSid() + ", participantUserSid=" + this.getParticipantUserSid() + ", participantIdentity=" + this.getParticipantIdentity() + ", participantMessagingBinding=" + this.getParticipantMessagingBinding() + ", conversationSid=" + this.getConversationSid() + ", conversationUniqueName=" + this.getConversationUniqueName() + ", conversationFriendlyName=" + this.getConversationFriendlyName() + ", conversationAttributes=" + this.getConversationAttributes() + ", conversationDateCreated=" + this.getConversationDateCreated() + ", conversationDateUpdated=" + this.getConversationDateUpdated() + ", conversationCreatedBy=" + this.getConversationCreatedBy() + ", conversationState=" + this.getConversationState() + ", conversationTimers=" + this.getConversationTimers() + ", links=" + this.getLinks() + ")"; + } + + public enum State { INACTIVE("inactive"), ACTIVE("active"), CLOSED("closed"); @@ -384,4 +378,4 @@ public int hashCode() { conversationTimers, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/Role.java b/src/main/java/com/twilio/rest/conversations/v1/Role.java index b82ba40f94..3c2605caa4 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/Role.java +++ b/src/main/java/com/twilio/rest/conversations/v1/Role.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Role extends Resource { private static final long serialVersionUID = 19854929534813L; - public enum RoleType { + public String toString() { + return "Role(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", permissions=" + this.getPermissions() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum RoleType { CONVERSATION("conversation"), SERVICE("service"); @@ -314,4 +308,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/Service.java b/src/main/java/com/twilio/rest/conversations/v1/Service.java index 571c44c2fb..7f8327a38d 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/Service.java +++ b/src/main/java/com/twilio/rest/conversations/v1/Service.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 84226976776172L; @@ -241,4 +232,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/User.java b/src/main/java/com/twilio/rest/conversations/v1/User.java index 144f691a41..dc72c1796d 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/User.java +++ b/src/main/java/com/twilio/rest/conversations/v1/User.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 60594343304027L; - public enum WebhookEnabledType { + public String toString() { + return "User(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", roleSid=" + this.getRoleSid() + ", identity=" + this.getIdentity() + ", friendlyName=" + this.getFriendlyName() + ", attributes=" + this.getAttributes() + ", isOnline=" + this.getIsOnline() + ", isNotifiable=" + this.getIsNotifiable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -371,4 +366,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/configuration/Webhook.java b/src/main/java/com/twilio/rest/conversations/v1/configuration/Webhook.java index 6e308a6d7e..a12d1f0171 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/configuration/Webhook.java +++ b/src/main/java/com/twilio/rest/conversations/v1/configuration/Webhook.java @@ -17,27 +17,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 177976816253651L; - public enum Target { + public String toString() { + return "Webhook(accountSid=" + this.getAccountSid() + ", method=" + this.getMethod() + ", filters=" + this.getFilters() + ", preWebhookUrl=" + this.getPreWebhookUrl() + ", postWebhookUrl=" + this.getPostWebhookUrl() + ", target=" + this.getTarget() + ", url=" + this.getUrl() + ")"; + } + + public enum Target { WEBHOOK("webhook"), FLEX("flex"); @@ -269,4 +263,4 @@ public int hashCode() { target, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java index 3a50b1a7f4..0703306403 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 178517243734679L; - public enum OrderType { + public String toString() { + return "Message(accountSid=" + this.getAccountSid() + ", conversationSid=" + this.getConversationSid() + ", sid=" + this.getSid() + ", index=" + this.getIndex() + ", author=" + this.getAuthor() + ", body=" + this.getBody() + ", media=" + this.getMedia() + ", attributes=" + this.getAttributes() + ", participantSid=" + this.getParticipantSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", delivery=" + this.getDelivery() + ", links=" + this.getLinks() + ")"; + } + + public enum OrderType { ASC("asc"), DESC("desc"); @@ -422,4 +416,4 @@ public int hashCode() { delivery, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/Participant.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/Participant.java index 1cfc1b0c3b..3ef3251502 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/Participant.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/Participant.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Participant extends Resource { private static final long serialVersionUID = 71791881065855L; - public enum WebhookEnabledType { + public String toString() { + return "Participant(accountSid=" + this.getAccountSid() + ", conversationSid=" + this.getConversationSid() + ", sid=" + this.getSid() + ", identity=" + this.getIdentity() + ", attributes=" + this.getAttributes() + ", messagingBinding=" + this.getMessagingBinding() + ", roleSid=" + this.getRoleSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", lastReadMessageIndex=" + this.getLastReadMessageIndex() + ", lastReadTimestamp=" + this.getLastReadTimestamp() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -373,4 +367,4 @@ public int hashCode() { lastReadMessageIndex, lastReadTimestamp); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java index ead05615d5..63722a09e0 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 99232637584802L; - public enum Target { + public String toString() { + return "Webhook(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", conversationSid=" + this.getConversationSid() + ", target=" + this.getTarget() + ", url=" + this.getUrl() + ", configuration=" + this.getConfiguration() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum Target { WEBHOOK("webhook"), TRIGGER("trigger"), STUDIO("studio"); @@ -331,4 +325,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/message/DeliveryReceipt.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/message/DeliveryReceipt.java index d9a95aeec6..699c69ee80 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/message/DeliveryReceipt.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/message/DeliveryReceipt.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DeliveryReceipt extends Resource { private static final long serialVersionUID = 77906133631055L; - public enum DeliveryStatus { + public String toString() { + return "DeliveryReceipt(accountSid=" + this.getAccountSid() + ", conversationSid=" + this.getConversationSid() + ", sid=" + this.getSid() + ", messageSid=" + this.getMessageSid() + ", channelMessageSid=" + this.getChannelMessageSid() + ", participantSid=" + this.getParticipantSid() + ", status=" + this.getStatus() + ", errorCode=" + this.getErrorCode() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum DeliveryStatus { READ("read"), FAILED("failed"), DELIVERED("delivered"), @@ -324,4 +318,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java b/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java index 889ca3edf7..f4fd788a4c 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Binding.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Binding extends Resource { private static final long serialVersionUID = 252683481132009L; - public enum BindingType { + public String toString() { + return "Binding(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", credentialSid=" + this.getCredentialSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endpoint=" + this.getEndpoint() + ", identity=" + this.getIdentity() + ", bindingType=" + this.getBindingType() + ", messageTypes=" + this.getMessageTypes() + ", url=" + this.getUrl() + ")"; + } + + public enum BindingType { APN("apn"), GCM("gcm"), FCM("fcm"); @@ -327,4 +321,4 @@ public int hashCode() { messageTypes, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Configuration.java b/src/main/java/com/twilio/rest/conversations/v1/service/Configuration.java index 7bf7973490..5341f310b4 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Configuration.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Configuration.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -31,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Configuration extends Resource { private static final long serialVersionUID = 101380153560243L; @@ -228,4 +219,8 @@ public int hashCode() { links, reachabilityEnabled); } -} \ No newline at end of file + + public String toString() { + return "Configuration(chatServiceSid=" + this.getChatServiceSid() + ", defaultConversationCreatorRoleSid=" + this.getDefaultConversationCreatorRoleSid() + ", defaultConversationRoleSid=" + this.getDefaultConversationRoleSid() + ", defaultChatServiceRoleSid=" + this.getDefaultChatServiceRoleSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", reachabilityEnabled=" + this.getReachabilityEnabled() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java b/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java index 2879512e01..a2c45c9004 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Conversation extends Resource { private static final long serialVersionUID = 166881016060302L; - public enum WebhookEnabledType { + public String toString() { + return "Conversation(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", attributes=" + this.getAttributes() + ", state=" + this.getState() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", timers=" + this.getTimers() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", bindings=" + this.getBindings() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -426,4 +420,4 @@ public int hashCode() { links, bindings); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/ParticipantConversation.java b/src/main/java/com/twilio/rest/conversations/v1/service/ParticipantConversation.java index 82289321a3..c9ea7481ad 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/ParticipantConversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/ParticipantConversation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -34,11 +25,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ParticipantConversation extends Resource { private static final long serialVersionUID = 31437574372222L; - public enum State { + public String toString() { + return "ParticipantConversation(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", participantSid=" + this.getParticipantSid() + ", participantUserSid=" + this.getParticipantUserSid() + ", participantIdentity=" + this.getParticipantIdentity() + ", participantMessagingBinding=" + this.getParticipantMessagingBinding() + ", conversationSid=" + this.getConversationSid() + ", conversationUniqueName=" + this.getConversationUniqueName() + ", conversationFriendlyName=" + this.getConversationFriendlyName() + ", conversationAttributes=" + this.getConversationAttributes() + ", conversationDateCreated=" + this.getConversationDateCreated() + ", conversationDateUpdated=" + this.getConversationDateUpdated() + ", conversationCreatedBy=" + this.getConversationCreatedBy() + ", conversationState=" + this.getConversationState() + ", conversationTimers=" + this.getConversationTimers() + ", links=" + this.getLinks() + ")"; + } + + public enum State { INACTIVE("inactive"), ACTIVE("active"), CLOSED("closed"); @@ -386,4 +380,4 @@ public int hashCode() { conversationTimers, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Role.java b/src/main/java/com/twilio/rest/conversations/v1/service/Role.java index c4b3eb057f..2cd668ccf7 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Role.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Role.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Role extends Resource { private static final long serialVersionUID = 19854929534813L; - public enum RoleType { + public String toString() { + return "Role(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", permissions=" + this.getPermissions() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum RoleType { CONVERSATION("conversation"), SERVICE("service"); @@ -328,4 +322,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/User.java b/src/main/java/com/twilio/rest/conversations/v1/service/User.java index 88da87513e..9dcf1ee7ae 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/User.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/User.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 60594343304027L; - public enum WebhookEnabledType { + public String toString() { + return "User(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", roleSid=" + this.getRoleSid() + ", identity=" + this.getIdentity() + ", friendlyName=" + this.getFriendlyName() + ", attributes=" + this.getAttributes() + ", isOnline=" + this.getIsOnline() + ", isNotifiable=" + this.getIsNotifiable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -385,4 +380,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/configuration/Notification.java b/src/main/java/com/twilio/rest/conversations/v1/service/configuration/Notification.java index 5614390e29..dbc5e075ff 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/configuration/Notification.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/configuration/Notification.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Notification extends Resource { private static final long serialVersionUID = 28053260690009L; @@ -228,4 +218,8 @@ public int hashCode() { logEnabled, url); } -} \ No newline at end of file + + public String toString() { + return "Notification(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", newMessage=" + this.getNewMessage() + ", addedToConversation=" + this.getAddedToConversation() + ", removedFromConversation=" + this.getRemovedFromConversation() + ", logEnabled=" + this.getLogEnabled() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java index d87d81da44..897ec0ef2c 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 166901888663263L; - public enum OrderType { + public String toString() { + return "Message(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", conversationSid=" + this.getConversationSid() + ", sid=" + this.getSid() + ", index=" + this.getIndex() + ", author=" + this.getAuthor() + ", body=" + this.getBody() + ", media=" + this.getMedia() + ", attributes=" + this.getAttributes() + ", participantSid=" + this.getParticipantSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", delivery=" + this.getDelivery() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum OrderType { ASC("asc"), DESC("desc"); @@ -454,4 +448,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Participant.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Participant.java index 4ea0025f41..a7a78318d7 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Participant.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Participant.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Participant extends Resource { private static final long serialVersionUID = 87278041957688L; - public enum WebhookEnabledType { + public String toString() { + return "Participant(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", conversationSid=" + this.getConversationSid() + ", sid=" + this.getSid() + ", identity=" + this.getIdentity() + ", attributes=" + this.getAttributes() + ", messagingBinding=" + this.getMessagingBinding() + ", roleSid=" + this.getRoleSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", lastReadMessageIndex=" + this.getLastReadMessageIndex() + ", lastReadTimestamp=" + this.getLastReadTimestamp() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -405,4 +399,4 @@ public int hashCode() { lastReadMessageIndex, lastReadTimestamp); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java index 02670d53af..33b136c78c 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Webhook.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 134707839484307L; - public enum Target { + public String toString() { + return "Webhook(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", conversationSid=" + this.getConversationSid() + ", target=" + this.getTarget() + ", url=" + this.getUrl() + ", configuration=" + this.getConfiguration() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum Target { WEBHOOK("webhook"), TRIGGER("trigger"), STUDIO("studio"); @@ -363,4 +357,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/message/DeliveryReceipt.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/message/DeliveryReceipt.java index 8ce3240c5f..43fdebcf23 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/message/DeliveryReceipt.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/message/DeliveryReceipt.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DeliveryReceipt extends Resource { private static final long serialVersionUID = 214846627803863L; - public enum DeliveryStatus { + public String toString() { + return "DeliveryReceipt(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", conversationSid=" + this.getConversationSid() + ", messageSid=" + this.getMessageSid() + ", sid=" + this.getSid() + ", channelMessageSid=" + this.getChannelMessageSid() + ", participantSid=" + this.getParticipantSid() + ", status=" + this.getStatus() + ", errorCode=" + this.getErrorCode() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum DeliveryStatus { READ("read"), FAILED("failed"), DELIVERED("delivered"), @@ -347,4 +341,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java b/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java index b091fbd72a..28086d2748 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserConversation extends Resource { private static final long serialVersionUID = 228878200976815L; - public enum NotificationLevel { + public String toString() { + return "UserConversation(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", conversationSid=" + this.getConversationSid() + ", unreadMessagesCount=" + this.getUnreadMessagesCount() + ", lastReadMessageIndex=" + this.getLastReadMessageIndex() + ", participantSid=" + this.getParticipantSid() + ", userSid=" + this.getUserSid() + ", friendlyName=" + this.getFriendlyName() + ", conversationState=" + this.getConversationState() + ", timers=" + this.getTimers() + ", attributes=" + this.getAttributes() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ", notificationLevel=" + this.getNotificationLevel() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum NotificationLevel { DEFAULT("default"), MUTED("muted"); @@ -485,4 +479,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java b/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java index d2835deb51..55c6184d26 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserConversation extends Resource { private static final long serialVersionUID = 228878200976815L; - public enum NotificationLevel { + public String toString() { + return "UserConversation(accountSid=" + this.getAccountSid() + ", chatServiceSid=" + this.getChatServiceSid() + ", conversationSid=" + this.getConversationSid() + ", unreadMessagesCount=" + this.getUnreadMessagesCount() + ", lastReadMessageIndex=" + this.getLastReadMessageIndex() + ", participantSid=" + this.getParticipantSid() + ", userSid=" + this.getUserSid() + ", friendlyName=" + this.getFriendlyName() + ", conversationState=" + this.getConversationState() + ", timers=" + this.getTimers() + ", attributes=" + this.getAttributes() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ", notificationLevel=" + this.getNotificationLevel() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum NotificationLevel { DEFAULT("default"), MUTED("muted"); @@ -473,4 +467,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/events/v1/EventType.java b/src/main/java/com/twilio/rest/events/v1/EventType.java index a2687404be..5f069abe0c 100644 --- a/src/main/java/com/twilio/rest/events/v1/EventType.java +++ b/src/main/java/com/twilio/rest/events/v1/EventType.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class EventType extends Resource { private static final long serialVersionUID = 60814324079305L; @@ -224,4 +215,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "EventType(type=" + this.getType() + ", schemaId=" + this.getSchemaId() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", description=" + this.getDescription() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/events/v1/Schema.java b/src/main/java/com/twilio/rest/events/v1/Schema.java index fb906c5ee2..5f7060f3f7 100644 --- a/src/main/java/com/twilio/rest/events/v1/Schema.java +++ b/src/main/java/com/twilio/rest/events/v1/Schema.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Schema extends Resource { private static final long serialVersionUID = 173014134409596L; @@ -184,4 +175,8 @@ public int hashCode() { latestVersionDateCreated, latestVersion); } -} \ No newline at end of file + + public String toString() { + return "Schema(id=" + this.getId() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", latestVersionDateCreated=" + this.getLatestVersionDateCreated() + ", latestVersion=" + this.getLatestVersion() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/events/v1/Sink.java b/src/main/java/com/twilio/rest/events/v1/Sink.java index b6b1dc42a4..f3c09c7334 100644 --- a/src/main/java/com/twilio/rest/events/v1/Sink.java +++ b/src/main/java/com/twilio/rest/events/v1/Sink.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Sink extends Resource { private static final long serialVersionUID = 113592032469931L; - public enum Status { + public String toString() { + return "Sink(dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", description=" + this.getDescription() + ", sid=" + this.getSid() + ", sinkConfiguration=" + this.getSinkConfiguration() + ", sinkType=" + this.getSinkType() + ", status=" + this.getStatus() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { INITIALIZED("initialized"), VALIDATING("validating"), ACTIVE("active"), @@ -343,4 +337,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/events/v1/Subscription.java b/src/main/java/com/twilio/rest/events/v1/Subscription.java index 1c253432a8..5c9e1a8090 100644 --- a/src/main/java/com/twilio/rest/events/v1/Subscription.java +++ b/src/main/java/com/twilio/rest/events/v1/Subscription.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,7 +30,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Subscription extends Resource { private static final long serialVersionUID = 270385027985111L; @@ -275,4 +265,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Subscription(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", description=" + this.getDescription() + ", sinkSid=" + this.getSinkSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/events/v1/schema/SchemaVersion.java b/src/main/java/com/twilio/rest/events/v1/schema/SchemaVersion.java index db4f5efd17..70463838e9 100644 --- a/src/main/java/com/twilio/rest/events/v1/schema/SchemaVersion.java +++ b/src/main/java/com/twilio/rest/events/v1/schema/SchemaVersion.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SchemaVersion extends Resource { private static final long serialVersionUID = 166791189394626L; @@ -197,4 +187,8 @@ public int hashCode() { url, raw); } -} \ No newline at end of file + + public String toString() { + return "SchemaVersion(id=" + this.getId() + ", schemaVersion=" + this.getSchemaVersion() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ", raw=" + this.getRaw() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/events/v1/sink/SinkTest.java b/src/main/java/com/twilio/rest/events/v1/sink/SinkTest.java index e6d2c896ed..1e03780556 100644 --- a/src/main/java/com/twilio/rest/events/v1/sink/SinkTest.java +++ b/src/main/java/com/twilio/rest/events/v1/sink/SinkTest.java @@ -16,17 +16,8 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; /** @@ -34,7 +25,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SinkTest extends Resource { private static final long serialVersionUID = 233814002700195L; @@ -122,4 +112,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(result); } -} \ No newline at end of file + + public String toString() { + return "SinkTest(result=" + this.getResult() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/events/v1/sink/SinkValidate.java b/src/main/java/com/twilio/rest/events/v1/sink/SinkValidate.java index 183133b4f2..05b5820dac 100644 --- a/src/main/java/com/twilio/rest/events/v1/sink/SinkValidate.java +++ b/src/main/java/com/twilio/rest/events/v1/sink/SinkValidate.java @@ -16,17 +16,8 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; /** @@ -34,7 +25,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SinkValidate extends Resource { private static final long serialVersionUID = 233814002700195L; @@ -125,4 +115,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(result); } -} \ No newline at end of file + + public String toString() { + return "SinkValidate(result=" + this.getResult() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEvent.java b/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEvent.java index 196dbeecba..f687c7a870 100644 --- a/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEvent.java +++ b/src/main/java/com/twilio/rest/events/v1/subscription/SubscribedEvent.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -35,7 +26,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SubscribedEvent extends Resource { private static final long serialVersionUID = 173614979661166L; @@ -231,4 +221,8 @@ public int hashCode() { subscriptionSid, url); } -} \ No newline at end of file + + public String toString() { + return "SubscribedEvent(accountSid=" + this.getAccountSid() + ", type=" + this.getType() + ", schemaVersion=" + this.getSchemaVersion() + ", subscriptionSid=" + this.getSubscriptionSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/fax/v1/Fax.java b/src/main/java/com/twilio/rest/fax/v1/Fax.java index 707683bf36..7af12375f5 100644 --- a/src/main/java/com/twilio/rest/fax/v1/Fax.java +++ b/src/main/java/com/twilio/rest/fax/v1/Fax.java @@ -19,14 +19,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; @@ -41,11 +33,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Fax extends Resource { private static final long serialVersionUID = 272370485490742L; - public enum Direction { + public String toString() { + return "Fax(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", from=" + this.getFrom() + ", to=" + this.getTo() + ", quality=" + this.getQuality() + ", mediaSid=" + this.getMediaSid() + ", mediaUrl=" + this.getMediaUrl() + ", numPages=" + this.getNumPages() + ", duration=" + this.getDuration() + ", status=" + this.getStatus() + ", direction=" + this.getDirection() + ", apiVersion=" + this.getApiVersion() + ", price=" + this.getPrice() + ", priceUnit=" + this.getPriceUnit() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ")"; + } + + public enum Direction { INBOUND("inbound"), OUTBOUND("outbound"); @@ -537,4 +532,4 @@ public int hashCode() { links, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/fax/v1/fax/FaxMedia.java b/src/main/java/com/twilio/rest/fax/v1/fax/FaxMedia.java index 4bc858e7d2..309f3d4568 100644 --- a/src/main/java/com/twilio/rest/fax/v1/fax/FaxMedia.java +++ b/src/main/java/com/twilio/rest/fax/v1/fax/FaxMedia.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FaxMedia extends Resource { private static final long serialVersionUID = 8543753722336L; @@ -239,4 +229,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "FaxMedia(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", faxSid=" + this.getFaxSid() + ", contentType=" + this.getContentType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/flexapi/v1/Channel.java b/src/main/java/com/twilio/rest/flexapi/v1/Channel.java index 4d6e82620f..1de602e381 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/Channel.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/Channel.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Channel extends Resource { private static final long serialVersionUID = 192292992411746L; @@ -268,4 +258,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "Channel(accountSid=" + this.getAccountSid() + ", flexFlowSid=" + this.getFlexFlowSid() + ", sid=" + this.getSid() + ", userSid=" + this.getUserSid() + ", taskSid=" + this.getTaskSid() + ", url=" + this.getUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/flexapi/v1/Configuration.java b/src/main/java/com/twilio/rest/flexapi/v1/Configuration.java index 2c646284db..ee8d3300cf 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/Configuration.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/Configuration.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,16 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Configuration extends Resource { private static final long serialVersionUID = 217500104430837L; - public enum Status { + public String toString() { + return "Configuration(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", attributes=" + this.getAttributes() + ", status=" + this.getStatus() + ", taskrouterWorkspaceSid=" + this.getTaskrouterWorkspaceSid() + ", taskrouterTargetWorkflowSid=" + this.getTaskrouterTargetWorkflowSid() + ", taskrouterTargetTaskqueueSid=" + this.getTaskrouterTargetTaskqueueSid() + ", taskrouterTaskqueues=" + this.getTaskrouterTaskqueues() + ", taskrouterSkills=" + this.getTaskrouterSkills() + ", taskrouterWorkerChannels=" + this.getTaskrouterWorkerChannels() + ", taskrouterWorkerAttributes=" + this.getTaskrouterWorkerAttributes() + ", taskrouterOfflineActivitySid=" + this.getTaskrouterOfflineActivitySid() + ", runtimeDomain=" + this.getRuntimeDomain() + ", messagingServiceInstanceSid=" + this.getMessagingServiceInstanceSid() + ", chatServiceInstanceSid=" + this.getChatServiceInstanceSid() + ", flexServiceInstanceSid=" + + this.getFlexServiceInstanceSid() + ", uiLanguage=" + this.getUiLanguage() + ", uiAttributes=" + this.getUiAttributes() + ", uiDependencies=" + this.getUiDependencies() + ", uiVersion=" + this.getUiVersion() + ", serviceVersion=" + this.getServiceVersion() + ", callRecordingEnabled=" + this.getCallRecordingEnabled() + ", callRecordingWebhookUrl=" + this.getCallRecordingWebhookUrl() + ", crmEnabled=" + this.getCrmEnabled() + ", crmType=" + this.getCrmType() + ", crmCallbackUrl=" + this.getCrmCallbackUrl() + ", crmFallbackUrl=" + this.getCrmFallbackUrl() + ", crmAttributes=" + this.getCrmAttributes() + ", publicAttributes=" + this.getPublicAttributes() + ", pluginServiceEnabled=" + this.getPluginServiceEnabled() + ", pluginServiceAttributes=" + this.getPluginServiceAttributes() + ", integrations=" + this.getIntegrations() + ", outboundCallFlows=" + this.getOutboundCallFlows() + ", serverlessServiceSids=" + this.getServerlessServiceSids() + ", queueStatsConfiguration=" + + this.getQueueStatsConfiguration() + ", notifications=" + this.getNotifications() + ", markdown=" + this.getMarkdown() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { OK("ok"), INPROGRESS("inprogress"), NOTSTARTED("notstarted"); @@ -747,4 +743,4 @@ public int hashCode() { markdown, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/flexapi/v1/FlexFlow.java b/src/main/java/com/twilio/rest/flexapi/v1/FlexFlow.java index 53cd5df56b..eb1d1a87e0 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/FlexFlow.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/FlexFlow.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FlexFlow extends Resource { private static final long serialVersionUID = 100371261398167L; - public enum ChannelType { + public String toString() { + return "FlexFlow(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", chatServiceSid=" + this.getChatServiceSid() + ", channelType=" + this.getChannelType() + ", contactIdentity=" + this.getContactIdentity() + ", enabled=" + this.getEnabled() + ", integrationType=" + this.getIntegrationType() + ", integration=" + this.getIntegration() + ", longLived=" + this.getLongLived() + ", janitorEnabled=" + this.getJanitorEnabled() + ", url=" + this.getUrl() + ")"; + } + + public enum ChannelType { WEB("web"), SMS("sms"), FACEBOOK("facebook"), @@ -416,4 +410,4 @@ public int hashCode() { janitorEnabled, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/flexapi/v1/WebChannel.java b/src/main/java/com/twilio/rest/flexapi/v1/WebChannel.java index 6e585c6859..5274ee23dc 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/WebChannel.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/WebChannel.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WebChannel extends Resource { private static final long serialVersionUID = 254450779434929L; - public enum ChatStatus { + public String toString() { + return "WebChannel(accountSid=" + this.getAccountSid() + ", flexFlowSid=" + this.getFlexFlowSid() + ", sid=" + this.getSid() + ", url=" + this.getUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum ChatStatus { INACTIVE("inactive"); private final String value; @@ -268,4 +262,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/frontlineapi/v1/User.java b/src/main/java/com/twilio/rest/frontlineapi/v1/User.java index 5e11bcfc3d..66d55e891b 100644 --- a/src/main/java/com/twilio/rest/frontlineapi/v1/User.java +++ b/src/main/java/com/twilio/rest/frontlineapi/v1/User.java @@ -17,18 +17,9 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,11 +27,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 146148351923263L; - public enum StateType { + public String toString() { + return "User(sid=" + this.getSid() + ", identity=" + this.getIdentity() + ", friendlyName=" + this.getFriendlyName() + ", avatar=" + this.getAvatar() + ", state=" + this.getState() + ", url=" + this.getUrl() + ")"; + } + + public enum StateType { ACTIVE("active"), DEACTIVATED("deactivated"); @@ -233,4 +227,4 @@ public int hashCode() { state, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/insights/v1/Call.java b/src/main/java/com/twilio/rest/insights/v1/Call.java index 391f62cc62..8c5289696c 100644 --- a/src/main/java/com/twilio/rest/insights/v1/Call.java +++ b/src/main/java/com/twilio/rest/insights/v1/Call.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Call extends Resource { private static final long serialVersionUID = 175008176045190L; @@ -153,4 +144,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Call(sid=" + this.getSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/insights/v1/CallSummaries.java b/src/main/java/com/twilio/rest/insights/v1/CallSummaries.java index 4db08af23d..d8e5521046 100644 --- a/src/main/java/com/twilio/rest/insights/v1/CallSummaries.java +++ b/src/main/java/com/twilio/rest/insights/v1/CallSummaries.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CallSummaries extends Resource { private static final long serialVersionUID = 231056398941993L; - public enum CallType { + public String toString() { + return "CallSummaries(accountSid=" + this.getAccountSid() + ", callSid=" + this.getCallSid() + ", callType=" + this.getCallType() + ", callState=" + this.getCallState() + ", processingState=" + this.getProcessingState() + ", createdTime=" + this.getCreatedTime() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", duration=" + this.getDuration() + ", connectDuration=" + this.getConnectDuration() + ", from=" + this.getFrom() + ", to=" + this.getTo() + ", carrierEdge=" + this.getCarrierEdge() + ", clientEdge=" + this.getClientEdge() + ", sdkEdge=" + this.getSdkEdge() + ", sipEdge=" + this.getSipEdge() + ", tags=" + this.getTags() + ", url=" + this.getUrl() + ", attributes=" + this.getAttributes() + ", properties=" + this.getProperties() + ", trust=" + this.getTrust() + ")"; + } + + public enum CallType { CARRIER("carrier"), SIP("sip"), TRUNKING("trunking"), @@ -586,4 +580,4 @@ public int hashCode() { properties, trust); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/insights/v1/Room.java b/src/main/java/com/twilio/rest/insights/v1/Room.java index c12235a41f..2600ed85eb 100644 --- a/src/main/java/com/twilio/rest/insights/v1/Room.java +++ b/src/main/java/com/twilio/rest/insights/v1/Room.java @@ -18,14 +18,7 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,11 +32,15 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Room extends Resource { private static final long serialVersionUID = 181047371989815L; - public enum RoomType { + public String toString() { + return "Room(accountSid=" + this.getAccountSid() + ", roomSid=" + this.getRoomSid() + ", roomName=" + this.getRoomName() + ", createTime=" + this.getCreateTime() + ", endTime=" + this.getEndTime() + ", roomType=" + this.getRoomType() + ", roomStatus=" + this.getRoomStatus() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", createdMethod=" + this.getCreatedMethod() + ", endReason=" + this.getEndReason() + ", maxParticipants=" + this.getMaxParticipants() + ", uniqueParticipants=" + this.getUniqueParticipants() + ", uniqueParticipantIdentities=" + this.getUniqueParticipantIdentities() + ", concurrentParticipants=" + this.getConcurrentParticipants() + ", maxConcurrentParticipants=" + this.getMaxConcurrentParticipants() + ", codecs=" + this.getCodecs() + ", mediaRegion=" + this.getMediaRegion() + ", durationSec=" + this.getDurationSec() + ", totalParticipantDurationSec=" + this.getTotalParticipantDurationSec() + + ", totalRecordingDurationSec=" + this.getTotalRecordingDurationSec() + ", processingState=" + this.getProcessingState() + ", recordingEnabled=" + this.getRecordingEnabled() + ", edgeLocation=" + this.getEdgeLocation() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum RoomType { GO("go"), PEER_TO_PEER("peer_to_peer"), GROUP("group"), @@ -736,4 +733,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/insights/v1/call/CallSummary.java b/src/main/java/com/twilio/rest/insights/v1/call/CallSummary.java index dd3a641814..cfb474eb79 100644 --- a/src/main/java/com/twilio/rest/insights/v1/call/CallSummary.java +++ b/src/main/java/com/twilio/rest/insights/v1/call/CallSummary.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CallSummary extends Resource { private static final long serialVersionUID = 75005243869493L; - public enum CallType { + public String toString() { + return "CallSummary(accountSid=" + this.getAccountSid() + ", callSid=" + this.getCallSid() + ", callType=" + this.getCallType() + ", callState=" + this.getCallState() + ", processingState=" + this.getProcessingState() + ", createdTime=" + this.getCreatedTime() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", duration=" + this.getDuration() + ", connectDuration=" + this.getConnectDuration() + ", from=" + this.getFrom() + ", to=" + this.getTo() + ", carrierEdge=" + this.getCarrierEdge() + ", clientEdge=" + this.getClientEdge() + ", sdkEdge=" + this.getSdkEdge() + ", sipEdge=" + this.getSipEdge() + ", tags=" + this.getTags() + ", url=" + this.getUrl() + ", attributes=" + this.getAttributes() + ", properties=" + this.getProperties() + ", trust=" + this.getTrust() + ")"; + } + + public enum CallType { CARRIER("carrier"), SIP("sip"), TRUNKING("trunking"), @@ -507,4 +501,4 @@ public int hashCode() { properties, trust); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/insights/v1/call/Event.java b/src/main/java/com/twilio/rest/insights/v1/call/Event.java index d1c8f84c45..1b5bf91d52 100644 --- a/src/main/java/com/twilio/rest/insights/v1/call/Event.java +++ b/src/main/java/com/twilio/rest/insights/v1/call/Event.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; @@ -37,11 +28,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Event extends Resource { private static final long serialVersionUID = 164982033524343L; - public enum TwilioEdge { + public String toString() { + return "Event(timestamp=" + this.getTimestamp() + ", callSid=" + this.getCallSid() + ", accountSid=" + this.getAccountSid() + ", edge=" + this.getEdge() + ", group=" + this.getGroup() + ", level=" + this.getLevel() + ", name=" + this.getName() + ", carrierEdge=" + this.getCarrierEdge() + ", sipEdge=" + this.getSipEdge() + ", sdkEdge=" + this.getSdkEdge() + ", clientEdge=" + this.getClientEdge() + ")"; + } + + public enum TwilioEdge { UNKNOWN_EDGE("unknown_edge"), CARRIER_EDGE("carrier_edge"), SIP_EDGE("sip_edge"), @@ -330,4 +324,4 @@ public int hashCode() { sdkEdge, clientEdge); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/insights/v1/call/Metric.java b/src/main/java/com/twilio/rest/insights/v1/call/Metric.java index 7b4dc2f192..fb9b19b9dd 100644 --- a/src/main/java/com/twilio/rest/insights/v1/call/Metric.java +++ b/src/main/java/com/twilio/rest/insights/v1/call/Metric.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; @@ -37,11 +28,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Metric extends Resource { private static final long serialVersionUID = 44318563826272L; - public enum TwilioEdge { + public String toString() { + return "Metric(timestamp=" + this.getTimestamp() + ", callSid=" + this.getCallSid() + ", accountSid=" + this.getAccountSid() + ", edge=" + this.getEdge() + ", direction=" + this.getDirection() + ", carrierEdge=" + this.getCarrierEdge() + ", sipEdge=" + this.getSipEdge() + ", sdkEdge=" + this.getSdkEdge() + ", clientEdge=" + this.getClientEdge() + ")"; + } + + public enum TwilioEdge { UNKNOWN_EDGE("unknown_edge"), CARRIER_EDGE("carrier_edge"), SIP_EDGE("sip_edge"), @@ -299,4 +293,4 @@ public int hashCode() { sdkEdge, clientEdge); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/insights/v1/room/Participant.java b/src/main/java/com/twilio/rest/insights/v1/room/Participant.java index 0076992b80..2d5ad53f84 100644 --- a/src/main/java/com/twilio/rest/insights/v1/room/Participant.java +++ b/src/main/java/com/twilio/rest/insights/v1/room/Participant.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -40,11 +31,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Participant extends Resource { private static final long serialVersionUID = 94659261265559L; - public enum RoomStatus { + public String toString() { + return "Participant(participantSid=" + this.getParticipantSid() + ", participantIdentity=" + this.getParticipantIdentity() + ", joinTime=" + this.getJoinTime() + ", leaveTime=" + this.getLeaveTime() + ", durationSec=" + this.getDurationSec() + ", accountSid=" + this.getAccountSid() + ", roomSid=" + this.getRoomSid() + ", status=" + this.getStatus() + ", codecs=" + this.getCodecs() + ", endReason=" + this.getEndReason() + ", errorCode=" + this.getErrorCode() + ", errorCodeUrl=" + this.getErrorCodeUrl() + ", mediaRegion=" + this.getMediaRegion() + ", properties=" + this.getProperties() + ", edgeLocation=" + this.getEdgeLocation() + ", publisherInfo=" + this.getPublisherInfo() + ", url=" + this.getUrl() + ")"; + } + + public enum RoomStatus { IN_PROGRESS("in_progress"), COMPLETED("completed"); @@ -500,4 +494,4 @@ public int hashCode() { publisherInfo, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/Credential.java b/src/main/java/com/twilio/rest/ipmessaging/v1/Credential.java index f174a922f7..99c1d19c5b 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/Credential.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/Credential.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 133884911230690L; - public enum PushService { + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", sandbox=" + this.getSandbox() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum PushService { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -292,4 +286,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/Service.java b/src/main/java/com/twilio/rest/ipmessaging/v1/Service.java index f1c821bccf..ffdf9fa460 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/Service.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/Service.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,7 +26,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 209287578457944L; @@ -461,4 +451,9 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", defaultServiceRoleSid=" + this.getDefaultServiceRoleSid() + ", defaultChannelRoleSid=" + this.getDefaultChannelRoleSid() + ", defaultChannelCreatorRoleSid=" + this.getDefaultChannelCreatorRoleSid() + ", readStatusEnabled=" + this.getReadStatusEnabled() + ", reachabilityEnabled=" + this.getReachabilityEnabled() + ", typingIndicatorTimeout=" + this.getTypingIndicatorTimeout() + ", consumptionReportInterval=" + this.getConsumptionReportInterval() + ", limits=" + this.getLimits() + ", webhooks=" + this.getWebhooks() + ", preWebhookUrl=" + this.getPreWebhookUrl() + ", postWebhookUrl=" + this.getPostWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", webhookFilters=" + this.getWebhookFilters() + ", notifications=" + this.getNotifications() + ", url=" + + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/Channel.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/Channel.java index 56796781fe..717132a0c9 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/Channel.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/Channel.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Channel extends Resource { private static final long serialVersionUID = 275623534063843L; - public enum ChannelType { + public String toString() { + return "Channel(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", attributes=" + this.getAttributes() + ", type=" + this.getType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ", membersCount=" + this.getMembersCount() + ", messagesCount=" + this.getMessagesCount() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum ChannelType { PUBLIC("public"), PRIVATE("private"); @@ -387,4 +382,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/Role.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/Role.java index d6862d0ae5..60d9d4e7db 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/Role.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/Role.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Role extends Resource { private static final long serialVersionUID = 78785177979928L; - public enum RoleType { + public String toString() { + return "Role(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", permissions=" + this.getPermissions() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum RoleType { CHANNEL("channel"), DEPLOYMENT("deployment"); @@ -321,4 +315,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/User.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/User.java index a14f3d2c78..df3dccb2db 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/User.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/User.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 15176818292650L; @@ -363,4 +354,8 @@ public int hashCode() { links, url); } -} \ No newline at end of file + + public String toString() { + return "User(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", attributes=" + this.getAttributes() + ", friendlyName=" + this.getFriendlyName() + ", roleSid=" + this.getRoleSid() + ", identity=" + this.getIdentity() + ", isOnline=" + this.getIsOnline() + ", isNotifiable=" + this.getIsNotifiable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", joinedChannelsCount=" + this.getJoinedChannelsCount() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Invite.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Invite.java index 48c9f55524..f4b557614a 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Invite.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Invite.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Invite extends Resource { private static final long serialVersionUID = 189960368613614L; @@ -299,4 +289,8 @@ public int hashCode() { createdBy, url); } -} \ No newline at end of file + + public String toString() { + return "Invite(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", createdBy=" + this.getCreatedBy() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Member.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Member.java index e623228805..fc585c56b9 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Member.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Member.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Member extends Resource { private static final long serialVersionUID = 102574959310114L; @@ -328,4 +318,8 @@ public int hashCode() { lastConsumptionTimestamp, url); } -} \ No newline at end of file + + public String toString() { + return "Member(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", lastConsumptionTimestamp=" + this.getLastConsumptionTimestamp() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Message.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Message.java index 0e9a6466c9..0ef6f139d1 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Message.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/channel/Message.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 68490171213295L; - public enum OrderType { + public String toString() { + return "Message(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", attributes=" + this.getAttributes() + ", serviceSid=" + this.getServiceSid() + ", to=" + this.getTo() + ", channelSid=" + this.getChannelSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", wasEdited=" + this.getWasEdited() + ", from=" + this.getFrom() + ", body=" + this.getBody() + ", index=" + this.getIndex() + ", url=" + this.getUrl() + ")"; + } + + public enum OrderType { ASC("asc"), DESC("desc"); @@ -384,4 +378,4 @@ public int hashCode() { index, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v1/service/user/UserChannel.java b/src/main/java/com/twilio/rest/ipmessaging/v1/service/user/UserChannel.java index a740467fc7..32f0bc97f8 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v1/service/user/UserChannel.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v1/service/user/UserChannel.java @@ -17,25 +17,20 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserChannel extends Resource { private static final long serialVersionUID = 254880238496884L; - public enum ChannelStatus { + public String toString() { + return "UserChannel(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", channelSid=" + this.getChannelSid() + ", memberSid=" + this.getMemberSid() + ", status=" + this.getStatus() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", unreadMessagesCount=" + this.getUnreadMessagesCount() + ", links=" + this.getLinks() + ")"; + } + + public enum ChannelStatus { JOINED("joined"), INVITED("invited"), NOT_PARTICIPATING("not_participating"); @@ -252,4 +247,4 @@ public int hashCode() { unreadMessagesCount, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/Credential.java b/src/main/java/com/twilio/rest/ipmessaging/v2/Credential.java index 0326ff2509..2d44ce7eef 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/Credential.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/Credential.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 133884911230690L; - public enum PushService { + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", sandbox=" + this.getSandbox() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum PushService { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -292,4 +286,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/Service.java b/src/main/java/com/twilio/rest/ipmessaging/v2/Service.java index 888d10e0c8..baf10d7d75 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/Service.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/Service.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,7 +26,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 81815704097903L; @@ -491,4 +481,9 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", defaultServiceRoleSid=" + this.getDefaultServiceRoleSid() + ", defaultChannelRoleSid=" + this.getDefaultChannelRoleSid() + ", defaultChannelCreatorRoleSid=" + this.getDefaultChannelCreatorRoleSid() + ", readStatusEnabled=" + this.getReadStatusEnabled() + ", reachabilityEnabled=" + this.getReachabilityEnabled() + ", typingIndicatorTimeout=" + this.getTypingIndicatorTimeout() + ", consumptionReportInterval=" + this.getConsumptionReportInterval() + ", limits=" + this.getLimits() + ", preWebhookUrl=" + this.getPreWebhookUrl() + ", postWebhookUrl=" + this.getPostWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", webhookFilters=" + this.getWebhookFilters() + ", preWebhookRetryCount=" + this.getPreWebhookRetryCount() + ", postWebhookRetryCount=" + + this.getPostWebhookRetryCount() + ", notifications=" + this.getNotifications() + ", media=" + this.getMedia() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/Binding.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/Binding.java index 8cf7b863b4..1a65f239fa 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/Binding.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/Binding.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Binding extends Resource { private static final long serialVersionUID = 102481637129176L; - public enum BindingType { + public String toString() { + return "Binding(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endpoint=" + this.getEndpoint() + ", identity=" + this.getIdentity() + ", credentialSid=" + this.getCredentialSid() + ", bindingType=" + this.getBindingType() + ", messageTypes=" + this.getMessageTypes() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum BindingType { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -337,4 +332,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/Channel.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/Channel.java index 466ec8dc0d..78df26d15f 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/Channel.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/Channel.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Channel extends Resource { private static final long serialVersionUID = 275623534063843L; - public enum ChannelType { + public String toString() { + return "Channel(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", attributes=" + this.getAttributes() + ", type=" + this.getType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ", membersCount=" + this.getMembersCount() + ", messagesCount=" + this.getMessagesCount() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum ChannelType { PUBLIC("public"), PRIVATE("private"); @@ -412,4 +407,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/Role.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/Role.java index 3639e1a840..ec1d4ecbc9 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/Role.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/Role.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Role extends Resource { private static final long serialVersionUID = 78785177979928L; - public enum RoleType { + public String toString() { + return "Role(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", permissions=" + this.getPermissions() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum RoleType { CHANNEL("channel"), DEPLOYMENT("deployment"); @@ -321,4 +315,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/User.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/User.java index 119767cf29..83cf17cf07 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/User.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/User.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class User extends Resource { private static final long serialVersionUID = 15176818292650L; - public enum WebhookEnabledType { + public String toString() { + return "User(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", attributes=" + this.getAttributes() + ", friendlyName=" + this.getFriendlyName() + ", roleSid=" + this.getRoleSid() + ", identity=" + this.getIdentity() + ", isOnline=" + this.getIsOnline() + ", isNotifiable=" + this.getIsNotifiable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", joinedChannelsCount=" + this.getJoinedChannelsCount() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -389,4 +384,4 @@ public int hashCode() { links, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Invite.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Invite.java index 48352283bc..258f833e1d 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Invite.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Invite.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Invite extends Resource { private static final long serialVersionUID = 189960368613614L; @@ -299,4 +289,8 @@ public int hashCode() { createdBy, url); } -} \ No newline at end of file + + public String toString() { + return "Invite(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", createdBy=" + this.getCreatedBy() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Member.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Member.java index 0aae977d03..8b5cc7d308 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Member.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Member.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Member extends Resource { private static final long serialVersionUID = 35425349237098L; - public enum WebhookEnabledType { + public String toString() { + return "Member(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", channelSid=" + this.getChannelSid() + ", serviceSid=" + this.getServiceSid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", roleSid=" + this.getRoleSid() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", lastConsumptionTimestamp=" + this.getLastConsumptionTimestamp() + ", url=" + this.getUrl() + ", attributes=" + this.getAttributes() + ")"; + } + + public enum WebhookEnabledType { TRUE("true"), FALSE("false"); @@ -369,4 +363,4 @@ public int hashCode() { url, attributes); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Message.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Message.java index c21e1dbe57..1465020f5d 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Message.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Message.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Message extends Resource { private static final long serialVersionUID = 240696203452729L; - public enum OrderType { + public String toString() { + return "Message(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", attributes=" + this.getAttributes() + ", serviceSid=" + this.getServiceSid() + ", to=" + this.getTo() + ", channelSid=" + this.getChannelSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", lastUpdatedBy=" + this.getLastUpdatedBy() + ", wasEdited=" + this.getWasEdited() + ", from=" + this.getFrom() + ", body=" + this.getBody() + ", index=" + this.getIndex() + ", type=" + this.getType() + ", media=" + this.getMedia() + ", url=" + this.getUrl() + ")"; + } + + public enum OrderType { ASC("asc"), DESC("desc"); @@ -453,4 +447,4 @@ public int hashCode() { media, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java index a651b0250b..817fb3d3e2 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 142993163058456L; - public enum Type { + public String toString() { + return "Webhook(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", channelSid=" + this.getChannelSid() + ", type=" + this.getType() + ", url=" + this.getUrl() + ", configuration=" + this.getConfiguration() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum Type { WEBHOOK("webhook"), TRIGGER("trigger"), STUDIO("studio"); @@ -351,4 +345,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBinding.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBinding.java index f60d5c5762..d38a1c21c6 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBinding.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserBinding.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserBinding extends Resource { private static final long serialVersionUID = 241481961692245L; - public enum BindingType { + public String toString() { + return "UserBinding(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", endpoint=" + this.getEndpoint() + ", identity=" + this.getIdentity() + ", userSid=" + this.getUserSid() + ", credentialSid=" + this.getCredentialSid() + ", bindingType=" + this.getBindingType() + ", messageTypes=" + this.getMessageTypes() + ", url=" + this.getUrl() + ")"; + } + + public enum BindingType { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -344,4 +338,4 @@ public int hashCode() { messageTypes, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannel.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannel.java index 780ccf89c4..b5b3f313dc 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannel.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/user/UserChannel.java @@ -17,14 +17,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,11 +24,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UserChannel extends Resource { private static final long serialVersionUID = 97342858560464L; - public enum ChannelStatus { + public String toString() { + return "UserChannel(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", channelSid=" + this.getChannelSid() + ", userSid=" + this.getUserSid() + ", memberSid=" + this.getMemberSid() + ", status=" + this.getStatus() + ", lastConsumedMessageIndex=" + this.getLastConsumedMessageIndex() + ", unreadMessagesCount=" + this.getUnreadMessagesCount() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ", notificationLevel=" + this.getNotificationLevel() + ")"; + } + + public enum ChannelStatus { JOINED("joined"), INVITED("invited"), NOT_PARTICIPATING("not_participating"); @@ -365,4 +360,4 @@ public int hashCode() { url, notificationLevel); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/lookups/v1/PhoneNumber.java b/src/main/java/com/twilio/rest/lookups/v1/PhoneNumber.java index d62cacb3f8..593ef557bf 100644 --- a/src/main/java/com/twilio/rest/lookups/v1/PhoneNumber.java +++ b/src/main/java/com/twilio/rest/lookups/v1/PhoneNumber.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,11 +24,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PhoneNumber extends Resource { private static final long serialVersionUID = 57234140476199L; - public enum Type { + public String toString() { + return "PhoneNumber(callerName=" + this.getCallerName() + ", countryCode=" + this.getCountryCode() + ", phoneNumber=" + this.getPhoneNumber() + ", nationalFormat=" + this.getNationalFormat() + ", carrier=" + this.getCarrier() + ", addOns=" + this.getAddOns() + ", url=" + this.getUrl() + ")"; + } + + public enum Type { LANDLINE("landline"), MOBILE("mobile"), VOIP("voip"); @@ -237,4 +231,4 @@ public int hashCode() { addOns, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java b/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java index 3e35a51228..8b0b99a984 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java +++ b/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class BrandRegistration extends Resource { private static final long serialVersionUID = 5353915230753L; - public enum Status { + public String toString() { + return "BrandRegistration(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", customerProfileBundleSid=" + this.getCustomerProfileBundleSid() + ", a2PProfileBundleSid=" + this.getA2PProfileBundleSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", brandType=" + this.getBrandType() + ", status=" + this.getStatus() + ", tcrId=" + this.getTcrId() + ", failureReason=" + this.getFailureReason() + ", url=" + this.getUrl() + ", brandScore=" + this.getBrandScore() + ", mock=" + this.getMock() + ")"; + } + + public enum Status { PENDING("PENDING"), APPROVED("APPROVED"), FAILED("FAILED"); @@ -357,4 +351,4 @@ public int hashCode() { brandScore, mock); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/Deactivations.java b/src/main/java/com/twilio/rest/messaging/v1/Deactivations.java index fc0239d852..726b2d73b7 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/Deactivations.java +++ b/src/main/java/com/twilio/rest/messaging/v1/Deactivations.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Deactivations extends Resource { private static final long serialVersionUID = 141886233784936L; @@ -118,4 +108,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(redirectTo); } -} \ No newline at end of file + + public String toString() { + return "Deactivations(redirectTo=" + this.getRedirectTo() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/ExternalCampaign.java b/src/main/java/com/twilio/rest/messaging/v1/ExternalCampaign.java index 9271a45f74..6933ca4db5 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/ExternalCampaign.java +++ b/src/main/java/com/twilio/rest/messaging/v1/ExternalCampaign.java @@ -17,18 +17,9 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExternalCampaign extends Resource { private static final long serialVersionUID = 29276528543173L; @@ -187,4 +177,8 @@ public int hashCode() { messagingServiceSid, dateCreated); } -} \ No newline at end of file + + public String toString() { + return "ExternalCampaign(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", campaignId=" + this.getCampaignId() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", dateCreated=" + this.getDateCreated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/Service.java b/src/main/java/com/twilio/rest/messaging/v1/Service.java index 5d11571441..b229a4a0df 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/Service.java +++ b/src/main/java/com/twilio/rest/messaging/v1/Service.java @@ -18,14 +18,7 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,11 +31,15 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 157234535736811L; - public enum ScanMessageContent { + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", inboundRequestUrl=" + this.getInboundRequestUrl() + ", inboundMethod=" + this.getInboundMethod() + ", fallbackUrl=" + this.getFallbackUrl() + ", fallbackMethod=" + this.getFallbackMethod() + ", statusCallback=" + this.getStatusCallback() + ", stickySender=" + this.getStickySender() + ", mmsConverter=" + this.getMmsConverter() + ", smartEncoding=" + this.getSmartEncoding() + ", scanMessageContent=" + this.getScanMessageContent() + ", fallbackToLongCode=" + this.getFallbackToLongCode() + ", areaCodeGeomatch=" + this.getAreaCodeGeomatch() + ", synchronousValidation=" + this.getSynchronousValidation() + ", validityPeriod=" + this.getValidityPeriod() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", useInboundWebhookOnNumber=" + + this.getUseInboundWebhookOnNumber() + ")"; + } + + public enum ScanMessageContent { INHERIT("inherit"), ENABLE("enable"), DISABLE("disable"); @@ -509,4 +506,4 @@ public int hashCode() { links, useInboundWebhookOnNumber); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/Usecase.java b/src/main/java/com/twilio/rest/messaging/v1/Usecase.java index 28d0c3e8ec..69b89d18f7 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/Usecase.java +++ b/src/main/java/com/twilio/rest/messaging/v1/Usecase.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.List; @@ -36,7 +27,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Usecase extends Resource { private static final long serialVersionUID = 35587373303298L; @@ -122,4 +112,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(usecases); } -} \ No newline at end of file + + public String toString() { + return "Usecase(usecases=" + this.getUsecases() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSender.java b/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSender.java index dd2a5f4025..d99c88d563 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSender.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/AlphaSender.java @@ -17,20 +17,11 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AlphaSender extends Resource { private static final long serialVersionUID = 153057609894951L; @@ -270,4 +260,8 @@ public int hashCode() { capabilities, url); } -} \ No newline at end of file + + public String toString() { + return "AlphaSender(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", alphaSender=" + this.getAlphaSender() + ", capabilities=" + this.getCapabilities() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumber.java b/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumber.java index 8c7fa4233e..d04af8e01f 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumber.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/PhoneNumber.java @@ -17,20 +17,11 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PhoneNumber extends Resource { private static final long serialVersionUID = 177917350059297L; @@ -284,4 +274,8 @@ public int hashCode() { capabilities, url); } -} \ No newline at end of file + + public String toString() { + return "PhoneNumber(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", phoneNumber=" + this.getPhoneNumber() + ", countryCode=" + this.getCountryCode() + ", capabilities=" + this.getCapabilities() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/ShortCode.java b/src/main/java/com/twilio/rest/messaging/v1/service/ShortCode.java index 4ea0a8bbe1..cebacbdc03 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/ShortCode.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/ShortCode.java @@ -17,20 +17,11 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ShortCode extends Resource { private static final long serialVersionUID = 191632597031887L; @@ -284,4 +274,8 @@ public int hashCode() { capabilities, url); } -} \ No newline at end of file + + public String toString() { + return "ShortCode(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", shortCode=" + this.getShortCode() + ", countryCode=" + this.getCountryCode() + ", capabilities=" + this.getCapabilities() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPerson.java b/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPerson.java index d182f66524..0b078610b7 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPerson.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPerson.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,7 +30,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UsAppToPerson extends Resource { private static final long serialVersionUID = 156924875301398L; @@ -424,4 +414,8 @@ public int hashCode() { url, mock); } -} \ No newline at end of file + + public String toString() { + return "UsAppToPerson(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", brandRegistrationSid=" + this.getBrandRegistrationSid() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", description=" + this.getDescription() + ", messageSamples=" + this.getMessageSamples() + ", usAppToPersonUsecase=" + this.getUsAppToPersonUsecase() + ", hasEmbeddedLinks=" + this.getHasEmbeddedLinks() + ", hasEmbeddedPhone=" + this.getHasEmbeddedPhone() + ", campaignStatus=" + this.getCampaignStatus() + ", campaignId=" + this.getCampaignId() + ", isExternallyRegistered=" + this.getIsExternallyRegistered() + ", rateLimits=" + this.getRateLimits() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", mock=" + this.getMock() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonUsecase.java b/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonUsecase.java index fe1cf705fe..34bca7b089 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonUsecase.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/UsAppToPersonUsecase.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.List; @@ -36,7 +27,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UsAppToPersonUsecase extends Resource { private static final long serialVersionUID = 86502123471221L; @@ -125,4 +115,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(usAppToPersonUsecases); } -} \ No newline at end of file + + public String toString() { + return "UsAppToPersonUsecase(usAppToPersonUsecases=" + this.getUsAppToPersonUsecases() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/monitor/v1/Alert.java b/src/main/java/com/twilio/rest/monitor/v1/Alert.java index 10c58f9562..1423950383 100644 --- a/src/main/java/com/twilio/rest/monitor/v1/Alert.java +++ b/src/main/java/com/twilio/rest/monitor/v1/Alert.java @@ -17,23 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Alert extends Resource { private static final long serialVersionUID = 254359080075749L; @@ -403,4 +394,8 @@ public int hashCode() { requestHeaders, serviceSid); } -} \ No newline at end of file + + public String toString() { + return "Alert(accountSid=" + this.getAccountSid() + ", alertText=" + this.getAlertText() + ", apiVersion=" + this.getApiVersion() + ", dateCreated=" + this.getDateCreated() + ", dateGenerated=" + this.getDateGenerated() + ", dateUpdated=" + this.getDateUpdated() + ", errorCode=" + this.getErrorCode() + ", logLevel=" + this.getLogLevel() + ", moreInfo=" + this.getMoreInfo() + ", requestMethod=" + this.getRequestMethod() + ", requestUrl=" + this.getRequestUrl() + ", requestVariables=" + this.getRequestVariables() + ", resourceSid=" + this.getResourceSid() + ", responseBody=" + this.getResponseBody() + ", responseHeaders=" + this.getResponseHeaders() + ", sid=" + this.getSid() + ", url=" + this.getUrl() + ", requestHeaders=" + this.getRequestHeaders() + ", serviceSid=" + this.getServiceSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/monitor/v1/Event.java b/src/main/java/com/twilio/rest/monitor/v1/Event.java index 0e2e978e5d..c4a8da83f7 100644 --- a/src/main/java/com/twilio/rest/monitor/v1/Event.java +++ b/src/main/java/com/twilio/rest/monitor/v1/Event.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Event extends Resource { private static final long serialVersionUID = 124591176455880L; @@ -327,4 +317,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Event(accountSid=" + this.getAccountSid() + ", actorSid=" + this.getActorSid() + ", actorType=" + this.getActorType() + ", description=" + this.getDescription() + ", eventData=" + this.getEventData() + ", eventDate=" + this.getEventDate() + ", eventType=" + this.getEventType() + ", resourceSid=" + this.getResourceSid() + ", resourceType=" + this.getResourceType() + ", sid=" + this.getSid() + ", source=" + this.getSource() + ", sourceIpAddress=" + this.getSourceIpAddress() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/notify/v1/Credential.java b/src/main/java/com/twilio/rest/notify/v1/Credential.java index e8d77bab30..55039fa638 100644 --- a/src/main/java/com/twilio/rest/notify/v1/Credential.java +++ b/src/main/java/com/twilio/rest/notify/v1/Credential.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Credential extends Resource { private static final long serialVersionUID = 133884911230690L; - public enum PushService { + public String toString() { + return "Credential(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", sandbox=" + this.getSandbox() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum PushService { GCM("gcm"), APN("apn"), FCM("fcm"); @@ -296,4 +290,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/notify/v1/Service.java b/src/main/java/com/twilio/rest/notify/v1/Service.java index d2e954c923..c502f6049f 100644 --- a/src/main/java/com/twilio/rest/notify/v1/Service.java +++ b/src/main/java/com/twilio/rest/notify/v1/Service.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 267258306183645L; @@ -447,4 +438,9 @@ public int hashCode() { deliveryCallbackUrl, deliveryCallbackEnabled); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", apnCredentialSid=" + this.getApnCredentialSid() + ", gcmCredentialSid=" + this.getGcmCredentialSid() + ", fcmCredentialSid=" + this.getFcmCredentialSid() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", facebookMessengerPageId=" + this.getFacebookMessengerPageId() + ", defaultApnNotificationProtocolVersion=" + this.getDefaultApnNotificationProtocolVersion() + ", defaultGcmNotificationProtocolVersion=" + this.getDefaultGcmNotificationProtocolVersion() + ", defaultFcmNotificationProtocolVersion=" + this.getDefaultFcmNotificationProtocolVersion() + ", logEnabled=" + this.getLogEnabled() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", alexaSkillId=" + this.getAlexaSkillId() + ", defaultAlexaNotificationProtocolVersion=" + + this.getDefaultAlexaNotificationProtocolVersion() + ", deliveryCallbackUrl=" + this.getDeliveryCallbackUrl() + ", deliveryCallbackEnabled=" + this.getDeliveryCallbackEnabled() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/notify/v1/service/Binding.java b/src/main/java/com/twilio/rest/notify/v1/service/Binding.java index db34da8fa7..1a9688ea74 100644 --- a/src/main/java/com/twilio/rest/notify/v1/service/Binding.java +++ b/src/main/java/com/twilio/rest/notify/v1/service/Binding.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,11 +31,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Binding extends Resource { private static final long serialVersionUID = 19604548272115L; - public enum BindingType { + public String toString() { + return "Binding(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", credentialSid=" + this.getCredentialSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", notificationProtocolVersion=" + this.getNotificationProtocolVersion() + ", endpoint=" + this.getEndpoint() + ", identity=" + this.getIdentity() + ", bindingType=" + this.getBindingType() + ", address=" + this.getAddress() + ", tags=" + this.getTags() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum BindingType { APN("apn"), GCM("gcm"), SMS("sms"), @@ -392,4 +387,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/notify/v1/service/Notification.java b/src/main/java/com/twilio/rest/notify/v1/service/Notification.java index 7d79a0b87f..fcfae487ba 100644 --- a/src/main/java/com/twilio/rest/notify/v1/service/Notification.java +++ b/src/main/java/com/twilio/rest/notify/v1/service/Notification.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -39,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Notification extends Resource { private static final long serialVersionUID = 275926337068118L; - public enum Priority { + public String toString() { + return "Notification(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", identities=" + this.getIdentities() + ", tags=" + this.getTags() + ", segments=" + this.getSegments() + ", priority=" + this.getPriority() + ", ttl=" + this.getTtl() + ", title=" + this.getTitle() + ", body=" + this.getBody() + ", sound=" + this.getSound() + ", action=" + this.getAction() + ", data=" + this.getData() + ", apn=" + this.getApn() + ", gcm=" + this.getGcm() + ", fcm=" + this.getFcm() + ", sms=" + this.getSms() + ", facebookMessenger=" + this.getFacebookMessenger() + ", alexa=" + this.getAlexa() + ")"; + } + + public enum Priority { HIGH("high"), LOW("low"); @@ -445,4 +439,4 @@ public int hashCode() { facebookMessenger, alexa); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java index 1627567ec1..d68de9c52e 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Bundle extends Resource { private static final long serialVersionUID = 1156865556823L; - public enum Status { + public String toString() { + return "Bundle(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", regulationSid=" + this.getRegulationSid() + ", friendlyName=" + this.getFriendlyName() + ", status=" + this.getStatus() + ", validUntil=" + this.getValidUntil() + ", email=" + this.getEmail() + ", statusCallback=" + this.getStatusCallback() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { DRAFT("draft"), PENDING_REVIEW("pending-review"), IN_REVIEW("in-review"), @@ -383,4 +378,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUser.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUser.java index 7508393e8b..db42411d33 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUser.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUser.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class EndUser extends Resource { private static final long serialVersionUID = 84611308166889L; - public enum Type { + public String toString() { + return "EndUser(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", attributes=" + this.getAttributes() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Type { INDIVIDUAL("individual"), BUSINESS("business"); @@ -293,4 +287,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserType.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserType.java index e9f3bdeaa3..a5bdd1d111 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserType.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/EndUserType.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class EndUserType extends Resource { private static final long serialVersionUID = 122060765056135L; @@ -190,4 +180,8 @@ public int hashCode() { fields, url); } -} \ No newline at end of file + + public String toString() { + return "EndUserType(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", machineName=" + this.getMachineName() + ", fields=" + this.getFields() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Regulation.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Regulation.java index bbbef67b20..d0cda3c179 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Regulation.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Regulation.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,11 +24,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Regulation extends Resource { private static final long serialVersionUID = 91152178992805L; - public enum EndUserType { + public String toString() { + return "Regulation(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", isoCountry=" + this.getIsoCountry() + ", numberType=" + this.getNumberType() + ", endUserType=" + this.getEndUserType() + ", requirements=" + this.getRequirements() + ", url=" + this.getUrl() + ")"; + } + + public enum EndUserType { INDIVIDUAL("individual"), BUSINESS("business"); @@ -245,4 +239,4 @@ public int hashCode() { requirements, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocument.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocument.java index d651dfab13..72cc9d59a4 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocument.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocument.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SupportingDocument extends Resource { private static final long serialVersionUID = 164064096878384L; - public enum Status { + public String toString() { + return "SupportingDocument(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", mimeType=" + this.getMimeType() + ", status=" + this.getStatus() + ", type=" + this.getType() + ", attributes=" + this.getAttributes() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { DRAFT("draft"), PENDING_REVIEW("pending-review"), REJECTED("rejected"), @@ -328,4 +322,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentType.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentType.java index cbf161720c..7e900cdba5 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentType.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/SupportingDocumentType.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SupportingDocumentType extends Resource { private static final long serialVersionUID = 122060765056135L; @@ -196,4 +186,8 @@ public int hashCode() { fields, url); } -} \ No newline at end of file + + public String toString() { + return "SupportingDocumentType(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", machineName=" + this.getMachineName() + ", fields=" + this.getFields() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/Evaluation.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/Evaluation.java index 3bb7301868..bfb7fc4ba0 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/Evaluation.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/Evaluation.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Evaluation extends Resource { private static final long serialVersionUID = 256422056466941L; - public enum Status { + public String toString() { + return "Evaluation(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", regulationSid=" + this.getRegulationSid() + ", bundleSid=" + this.getBundleSid() + ", status=" + this.getStatus() + ", results=" + this.getResults() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { COMPLIANT("compliant"), NONCOMPLIANT("noncompliant"); @@ -276,4 +270,4 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignment.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignment.java index 77287c5e64..b14a44dff8 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignment.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/bundle/ItemAssignment.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ItemAssignment extends Resource { private static final long serialVersionUID = 155777674150989L; @@ -232,4 +222,8 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file + + public String toString() { + return "ItemAssignment(sid=" + this.getSid() + ", bundleSid=" + this.getBundleSid() + ", accountSid=" + this.getAccountSid() + ", objectSid=" + this.getObjectSid() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/bulkExports/Export.java b/src/main/java/com/twilio/rest/preview/bulkExports/Export.java index 59037becd9..e7b1946fb0 100644 --- a/src/main/java/com/twilio/rest/preview/bulkExports/Export.java +++ b/src/main/java/com/twilio/rest/preview/bulkExports/Export.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Export extends Resource { private static final long serialVersionUID = 249832685506996L; @@ -156,4 +147,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Export(resourceType=" + this.getResourceType() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/bulkExports/ExportConfiguration.java b/src/main/java/com/twilio/rest/preview/bulkExports/ExportConfiguration.java index af51304d64..6a961fe205 100644 --- a/src/main/java/com/twilio/rest/preview/bulkExports/ExportConfiguration.java +++ b/src/main/java/com/twilio/rest/preview/bulkExports/ExportConfiguration.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExportConfiguration extends Resource { private static final long serialVersionUID = 121290827357040L; @@ -198,4 +188,8 @@ public int hashCode() { resourceType, url); } -} \ No newline at end of file + + public String toString() { + return "ExportConfiguration(enabled=" + this.getEnabled() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", resourceType=" + this.getResourceType() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/bulkExports/export/Day.java b/src/main/java/com/twilio/rest/preview/bulkExports/export/Day.java index df39cd4bda..18980028e6 100644 --- a/src/main/java/com/twilio/rest/preview/bulkExports/export/Day.java +++ b/src/main/java/com/twilio/rest/preview/bulkExports/export/Day.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Day extends Resource { private static final long serialVersionUID = 101410619433718L; @@ -214,4 +204,8 @@ public int hashCode() { friendlyName, resourceType); } -} \ No newline at end of file + + public String toString() { + return "Day(redirectTo=" + this.getRedirectTo() + ", day=" + this.getDay() + ", size=" + this.getSize() + ", createDate=" + this.getCreateDate() + ", friendlyName=" + this.getFriendlyName() + ", resourceType=" + this.getResourceType() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/bulkExports/export/ExportCustomJob.java b/src/main/java/com/twilio/rest/preview/bulkExports/export/ExportCustomJob.java index 05a880212a..3317f9aa2b 100644 --- a/src/main/java/com/twilio/rest/preview/bulkExports/export/ExportCustomJob.java +++ b/src/main/java/com/twilio/rest/preview/bulkExports/export/ExportCustomJob.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExportCustomJob extends Resource { private static final long serialVersionUID = 147268074422838L; @@ -273,4 +263,8 @@ public int hashCode() { jobSid, details); } -} \ No newline at end of file + + public String toString() { + return "ExportCustomJob(friendlyName=" + this.getFriendlyName() + ", resourceType=" + this.getResourceType() + ", startDay=" + this.getStartDay() + ", endDay=" + this.getEndDay() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", email=" + this.getEmail() + ", jobSid=" + this.getJobSid() + ", details=" + this.getDetails() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/bulkExports/export/Job.java b/src/main/java/com/twilio/rest/preview/bulkExports/export/Job.java index 7bbf22c789..4b7097e39b 100644 --- a/src/main/java/com/twilio/rest/preview/bulkExports/export/Job.java +++ b/src/main/java/com/twilio/rest/preview/bulkExports/export/Job.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Job extends Resource { private static final long serialVersionUID = 26365801574783L; @@ -277,4 +267,8 @@ public int hashCode() { email, url); } -} \ No newline at end of file + + public String toString() { + return "Job(resourceType=" + this.getResourceType() + ", friendlyName=" + this.getFriendlyName() + ", details=" + this.getDetails() + ", startDay=" + this.getStartDay() + ", endDay=" + this.getEndDay() + ", jobSid=" + this.getJobSid() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", email=" + this.getEmail() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/deployedDevices/Fleet.java b/src/main/java/com/twilio/rest/preview/deployedDevices/Fleet.java index d86dace0cd..a14637bf78 100644 --- a/src/main/java/com/twilio/rest/preview/deployedDevices/Fleet.java +++ b/src/main/java/com/twilio/rest/preview/deployedDevices/Fleet.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Fleet extends Resource { private static final long serialVersionUID = 61125886588992L; @@ -283,4 +274,8 @@ public int hashCode() { dateUpdated, links); } -} \ No newline at end of file + + public String toString() { + return "Fleet(sid=" + this.getSid() + ", url=" + this.getUrl() + ", uniqueName=" + this.getUniqueName() + ", friendlyName=" + this.getFriendlyName() + ", accountSid=" + this.getAccountSid() + ", defaultDeploymentSid=" + this.getDefaultDeploymentSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Certificate.java b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Certificate.java index f3c3ad1975..f30967cbf9 100644 --- a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Certificate.java +++ b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Certificate.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Certificate extends Resource { private static final long serialVersionUID = 78866906209311L; @@ -294,4 +284,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "Certificate(sid=" + this.getSid() + ", url=" + this.getUrl() + ", friendlyName=" + this.getFriendlyName() + ", fleetSid=" + this.getFleetSid() + ", accountSid=" + this.getAccountSid() + ", deviceSid=" + this.getDeviceSid() + ", thumbprint=" + this.getThumbprint() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Deployment.java b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Deployment.java index b6f541169f..a8b134a704 100644 --- a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Deployment.java +++ b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Deployment.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Deployment extends Resource { private static final long serialVersionUID = 277943167449675L; @@ -277,4 +267,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "Deployment(sid=" + this.getSid() + ", url=" + this.getUrl() + ", friendlyName=" + this.getFriendlyName() + ", fleetSid=" + this.getFleetSid() + ", accountSid=" + this.getAccountSid() + ", syncServiceSid=" + this.getSyncServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Device.java b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Device.java index 8f1060ce50..3c48dc32d9 100644 --- a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Device.java +++ b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Device.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Device extends Resource { private static final long serialVersionUID = 144542670393653L; @@ -336,4 +326,8 @@ public int hashCode() { dateUpdated, dateAuthenticated); } -} \ No newline at end of file + + public String toString() { + return "Device(sid=" + this.getSid() + ", url=" + this.getUrl() + ", uniqueName=" + this.getUniqueName() + ", friendlyName=" + this.getFriendlyName() + ", fleetSid=" + this.getFleetSid() + ", enabled=" + this.getEnabled() + ", accountSid=" + this.getAccountSid() + ", identity=" + this.getIdentity() + ", deploymentSid=" + this.getDeploymentSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", dateAuthenticated=" + this.getDateAuthenticated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Key.java b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Key.java index 9ffe16c812..dd4c4d056e 100644 --- a/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Key.java +++ b/src/main/java/com/twilio/rest/preview/deployedDevices/fleet/Key.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Key extends Resource { private static final long serialVersionUID = 62747134946875L; @@ -291,4 +281,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "Key(sid=" + this.getSid() + ", url=" + this.getUrl() + ", friendlyName=" + this.getFriendlyName() + ", fleetSid=" + this.getFleetSid() + ", accountSid=" + this.getAccountSid() + ", deviceSid=" + this.getDeviceSid() + ", secret=" + this.getSecret() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/hostedNumbers/AuthorizationDocument.java b/src/main/java/com/twilio/rest/preview/hostedNumbers/AuthorizationDocument.java index f4dbff8f05..d372bc2cf9 100644 --- a/src/main/java/com/twilio/rest/preview/hostedNumbers/AuthorizationDocument.java +++ b/src/main/java/com/twilio/rest/preview/hostedNumbers/AuthorizationDocument.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -40,11 +32,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AuthorizationDocument extends Resource { private static final long serialVersionUID = 156014201571905L; - public enum Status { + public String toString() { + return "AuthorizationDocument(sid=" + this.getSid() + ", addressSid=" + this.getAddressSid() + ", status=" + this.getStatus() + ", email=" + this.getEmail() + ", ccEmails=" + this.getCcEmails() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { OPENED("opened"), SIGNING("signing"), SIGNED("signed"), @@ -313,4 +308,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java b/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java index 0abc776dfd..1a58a5802b 100644 --- a/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java +++ b/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java @@ -18,21 +18,12 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -41,11 +32,15 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class HostedNumberOrder extends Resource { private static final long serialVersionUID = 200143237925863L; - public enum Status { + public String toString() { + return "HostedNumberOrder(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", incomingPhoneNumberSid=" + this.getIncomingPhoneNumberSid() + ", addressSid=" + this.getAddressSid() + ", signingDocumentSid=" + this.getSigningDocumentSid() + ", phoneNumber=" + this.getPhoneNumber() + ", capabilities=" + this.getCapabilities() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", status=" + this.getStatus() + ", failureReason=" + this.getFailureReason() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", verificationAttempts=" + this.getVerificationAttempts() + ", email=" + this.getEmail() + ", ccEmails=" + this.getCcEmails() + ", url=" + this.getUrl() + ", verificationType=" + this.getVerificationType() + ", verificationDocumentSid=" + this.getVerificationDocumentSid() + ", extension=" + this.getExtension() + ", callDelay=" + this.getCallDelay() + ", verificationCode=" + + this.getVerificationCode() + ", verificationCallSids=" + this.getVerificationCallSids() + ")"; + } + + public enum Status { RECEIVED("received"), PENDING_VERIFICATION("pending-verification"), VERIFIED("verified"), @@ -557,4 +552,4 @@ public int hashCode() { verificationCode, verificationCallSids); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java b/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java index 8d2c559f6f..451d84e1c8 100644 --- a/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java +++ b/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java @@ -18,20 +18,11 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -40,11 +31,15 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DependentHostedNumberOrder extends Resource { private static final long serialVersionUID = 20864169614063L; - public enum Status { + public String toString() { + return "DependentHostedNumberOrder(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", incomingPhoneNumberSid=" + this.getIncomingPhoneNumberSid() + ", addressSid=" + this.getAddressSid() + ", signingDocumentSid=" + this.getSigningDocumentSid() + ", phoneNumber=" + this.getPhoneNumber() + ", capabilities=" + this.getCapabilities() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", status=" + this.getStatus() + ", failureReason=" + this.getFailureReason() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", verificationAttempts=" + this.getVerificationAttempts() + ", email=" + this.getEmail() + ", ccEmails=" + this.getCcEmails() + ", verificationType=" + this.getVerificationType() + ", verificationDocumentSid=" + this.getVerificationDocumentSid() + ", extension=" + this.getExtension() + ", callDelay=" + this.getCallDelay() + ", verificationCode=" + this.getVerificationCode() + + ", verificationCallSids=" + this.getVerificationCallSids() + ")"; + } + + public enum Status { RECEIVED("received"), PENDING_VERIFICATION("pending-verification"), VERIFIED("verified"), @@ -500,4 +495,4 @@ public int hashCode() { verificationCode, verificationCallSids); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/preview/marketplace/AvailableAddOn.java b/src/main/java/com/twilio/rest/preview/marketplace/AvailableAddOn.java index 0b38219670..501be8dba6 100644 --- a/src/main/java/com/twilio/rest/preview/marketplace/AvailableAddOn.java +++ b/src/main/java/com/twilio/rest/preview/marketplace/AvailableAddOn.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AvailableAddOn extends Resource { private static final long serialVersionUID = 22306216855466L; @@ -226,4 +216,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "AvailableAddOn(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", description=" + this.getDescription() + ", pricingType=" + this.getPricingType() + ", configurationSchema=" + this.getConfigurationSchema() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOn.java b/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOn.java index 49320b764b..ab449345ff 100644 --- a/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOn.java +++ b/src/main/java/com/twilio/rest/preview/marketplace/InstalledAddOn.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class InstalledAddOn extends Resource { private static final long serialVersionUID = 59619174394820L; @@ -305,4 +295,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "InstalledAddOn(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", description=" + this.getDescription() + ", configuration=" + this.getConfiguration() + ", uniqueName=" + this.getUniqueName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/marketplace/availableaddon/AvailableAddOnExtension.java b/src/main/java/com/twilio/rest/preview/marketplace/availableaddon/AvailableAddOnExtension.java index 0637ff9a1c..4cf13f15e5 100644 --- a/src/main/java/com/twilio/rest/preview/marketplace/availableaddon/AvailableAddOnExtension.java +++ b/src/main/java/com/twilio/rest/preview/marketplace/availableaddon/AvailableAddOnExtension.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AvailableAddOnExtension extends Resource { private static final long serialVersionUID = 88592059649526L; @@ -215,4 +205,8 @@ public int hashCode() { uniqueName, url); } -} \ No newline at end of file + + public String toString() { + return "AvailableAddOnExtension(sid=" + this.getSid() + ", availableAddOnSid=" + this.getAvailableAddOnSid() + ", friendlyName=" + this.getFriendlyName() + ", productName=" + this.getProductName() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/marketplace/installedaddon/InstalledAddOnExtension.java b/src/main/java/com/twilio/rest/preview/marketplace/installedaddon/InstalledAddOnExtension.java index 9ca6236be7..829d24c73d 100644 --- a/src/main/java/com/twilio/rest/preview/marketplace/installedaddon/InstalledAddOnExtension.java +++ b/src/main/java/com/twilio/rest/preview/marketplace/installedaddon/InstalledAddOnExtension.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class InstalledAddOnExtension extends Resource { private static final long serialVersionUID = 70024747231532L; @@ -245,4 +235,8 @@ public int hashCode() { enabled, url); } -} \ No newline at end of file + + public String toString() { + return "InstalledAddOnExtension(sid=" + this.getSid() + ", installedAddOnSid=" + this.getInstalledAddOnSid() + ", friendlyName=" + this.getFriendlyName() + ", productName=" + this.getProductName() + ", uniqueName=" + this.getUniqueName() + ", enabled=" + this.getEnabled() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/Service.java b/src/main/java/com/twilio/rest/preview/sync/Service.java index 3224b01d0e..35eaf6a0b2 100644 --- a/src/main/java/com/twilio/rest/preview/sync/Service.java +++ b/src/main/java/com/twilio/rest/preview/sync/Service.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 133636516526090L; @@ -298,4 +289,8 @@ public int hashCode() { aclEnabled, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", webhookUrl=" + this.getWebhookUrl() + ", reachabilityWebhooksEnabled=" + this.getReachabilityWebhooksEnabled() + ", aclEnabled=" + this.getAclEnabled() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/Document.java b/src/main/java/com/twilio/rest/preview/sync/service/Document.java index 6ab91f1df1..51db59b19d 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/Document.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/Document.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Document extends Resource { private static final long serialVersionUID = 140626500811731L; @@ -325,4 +315,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "Document(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", revision=" + this.getRevision() + ", data=" + this.getData() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java b/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java index 15ac942a0b..588f5356bb 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncList extends Resource { private static final long serialVersionUID = 198331554255718L; @@ -295,4 +286,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "SyncList(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", revision=" + this.getRevision() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java b/src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java index c046de8fe7..3d518eff41 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncMap extends Resource { private static final long serialVersionUID = 198331554255718L; @@ -294,4 +285,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "SyncMap(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", revision=" + this.getRevision() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java index b3dad163d0..bf698b428f 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DocumentPermission extends Resource { private static final long serialVersionUID = 172715793000822L; @@ -282,4 +272,8 @@ public int hashCode() { manage, url); } -} \ No newline at end of file + + public String toString() { + return "DocumentPermission(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", documentSid=" + this.getDocumentSid() + ", identity=" + this.getIdentity() + ", read=" + this.getRead() + ", write=" + this.getWrite() + ", manage=" + this.getManage() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java index bd3665175b..9a0a63cd96 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -40,11 +31,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncListItem extends Resource { private static final long serialVersionUID = 211432738907618L; - public enum QueryResultOrder { + public String toString() { + return "SyncListItem(index=" + this.getIndex() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", listSid=" + this.getListSid() + ", url=" + this.getUrl() + ", revision=" + this.getRevision() + ", data=" + this.getData() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } + + public enum QueryResultOrder { ASC("asc"), DESC("desc"); @@ -373,4 +367,4 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java index 73d3f6a625..1a10ac000a 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncListPermission extends Resource { private static final long serialVersionUID = 53631144313647L; @@ -282,4 +272,8 @@ public int hashCode() { manage, url); } -} \ No newline at end of file + + public String toString() { + return "SyncListPermission(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", listSid=" + this.getListSid() + ", identity=" + this.getIdentity() + ", read=" + this.getRead() + ", write=" + this.getWrite() + ", manage=" + this.getManage() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java index bdb6eb4794..7d0418b5cf 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -40,11 +31,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncMapItem extends Resource { private static final long serialVersionUID = 209160747826518L; - public enum QueryResultOrder { + public String toString() { + return "SyncMapItem(key=" + this.getKey() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", mapSid=" + this.getMapSid() + ", url=" + this.getUrl() + ", revision=" + this.getRevision() + ", data=" + this.getData() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } + + public enum QueryResultOrder { ASC("asc"), DESC("desc"); @@ -375,4 +369,4 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java index 9c7ee70b0a..1579ad7ebd 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java +++ b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncMapPermission extends Resource { private static final long serialVersionUID = 261843483205862L; @@ -282,4 +272,8 @@ public int hashCode() { manage, url); } -} \ No newline at end of file + + public String toString() { + return "SyncMapPermission(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", mapSid=" + this.getMapSid() + ", identity=" + this.getIdentity() + ", read=" + this.getRead() + ", write=" + this.getWrite() + ", manage=" + this.getManage() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/trustedComms/BrandedChannel.java b/src/main/java/com/twilio/rest/preview/trustedComms/BrandedChannel.java index 563e8ad98e..5bb3a5e81f 100644 --- a/src/main/java/com/twilio/rest/preview/trustedComms/BrandedChannel.java +++ b/src/main/java/com/twilio/rest/preview/trustedComms/BrandedChannel.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class BrandedChannel extends Resource { private static final long serialVersionUID = 119049791747662L; @@ -199,4 +190,8 @@ public int hashCode() { links, url); } -} \ No newline at end of file + + public String toString() { + return "BrandedChannel(accountSid=" + this.getAccountSid() + ", businessSid=" + this.getBusinessSid() + ", brandSid=" + this.getBrandSid() + ", sid=" + this.getSid() + ", links=" + this.getLinks() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/trustedComms/BrandsInformation.java b/src/main/java/com/twilio/rest/preview/trustedComms/BrandsInformation.java index fdcb0c9d6a..489d95c2a6 100644 --- a/src/main/java/com/twilio/rest/preview/trustedComms/BrandsInformation.java +++ b/src/main/java/com/twilio/rest/preview/trustedComms/BrandsInformation.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class BrandsInformation extends Resource { private static final long serialVersionUID = 89883061153774L; @@ -170,4 +160,8 @@ public int hashCode() { fileLinkTtlInSeconds, url); } -} \ No newline at end of file + + public String toString() { + return "BrandsInformation(updateTime=" + this.getUpdateTime() + ", fileLink=" + this.getFileLink() + ", fileLinkTtlInSeconds=" + this.getFileLinkTtlInSeconds() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/trustedComms/Cps.java b/src/main/java/com/twilio/rest/preview/trustedComms/Cps.java index c36a74b1e2..7ff8142402 100644 --- a/src/main/java/com/twilio/rest/preview/trustedComms/Cps.java +++ b/src/main/java/com/twilio/rest/preview/trustedComms/Cps.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Cps extends Resource { private static final long serialVersionUID = 222355853485460L; @@ -152,4 +142,8 @@ public int hashCode() { phoneNumber, url); } -} \ No newline at end of file + + public String toString() { + return "Cps(cpsUrl=" + this.getCpsUrl() + ", phoneNumber=" + this.getPhoneNumber() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/trustedComms/CurrentCall.java b/src/main/java/com/twilio/rest/preview/trustedComms/CurrentCall.java index 84f218bec3..e9328e9145 100644 --- a/src/main/java/com/twilio/rest/preview/trustedComms/CurrentCall.java +++ b/src/main/java/com/twilio/rest/preview/trustedComms/CurrentCall.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CurrentCall extends Resource { private static final long serialVersionUID = 212286172550611L; @@ -322,4 +312,8 @@ public int hashCode() { url, useCase); } -} \ No newline at end of file + + public String toString() { + return "CurrentCall(bgColor=" + this.getBgColor() + ", caller=" + this.getCaller() + ", createdAt=" + this.getCreatedAt() + ", fontColor=" + this.getFontColor() + ", from=" + this.getFrom() + ", logo=" + this.getLogo() + ", manager=" + this.getManager() + ", reason=" + this.getReason() + ", shieldImg=" + this.getShieldImg() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", to=" + this.getTo() + ", url=" + this.getUrl() + ", useCase=" + this.getUseCase() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/trustedComms/brandedchannel/Channel.java b/src/main/java/com/twilio/rest/preview/trustedComms/brandedchannel/Channel.java index 824e6dbc7b..d31db5c3df 100644 --- a/src/main/java/com/twilio/rest/preview/trustedComms/brandedchannel/Channel.java +++ b/src/main/java/com/twilio/rest/preview/trustedComms/brandedchannel/Channel.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Channel extends Resource { private static final long serialVersionUID = 99311524255768L; @@ -215,4 +205,8 @@ public int hashCode() { phoneNumber, url); } -} \ No newline at end of file + + public String toString() { + return "Channel(accountSid=" + this.getAccountSid() + ", businessSid=" + this.getBusinessSid() + ", brandSid=" + this.getBrandSid() + ", brandedChannelSid=" + this.getBrandedChannelSid() + ", phoneNumberSid=" + this.getPhoneNumberSid() + ", phoneNumber=" + this.getPhoneNumber() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/Assistant.java b/src/main/java/com/twilio/rest/preview/understand/Assistant.java index b251c906ff..8719b02b9d 100644 --- a/src/main/java/com/twilio/rest/preview/understand/Assistant.java +++ b/src/main/java/com/twilio/rest/preview/understand/Assistant.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Assistant extends Resource { private static final long serialVersionUID = 17320483220293L; @@ -341,4 +332,8 @@ public int hashCode() { callbackUrl, callbackEvents); } -} \ No newline at end of file + + public String toString() { + return "Assistant(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", latestModelBuildSid=" + this.getLatestModelBuildSid() + ", links=" + this.getLinks() + ", logQueries=" + this.getLogQueries() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ", callbackUrl=" + this.getCallbackUrl() + ", callbackEvents=" + this.getCallbackEvents() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantFallbackActions.java b/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantFallbackActions.java index da043e36b5..09fb7481db 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantFallbackActions.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantFallbackActions.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AssistantFallbackActions extends Resource { private static final long serialVersionUID = 3179724176697L; @@ -180,4 +170,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "AssistantFallbackActions(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantInitiationActions.java b/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantInitiationActions.java index be79c3a187..a63d46363e 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantInitiationActions.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/AssistantInitiationActions.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AssistantInitiationActions extends Resource { private static final long serialVersionUID = 3179724176697L; @@ -180,4 +170,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "AssistantInitiationActions(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/Dialogue.java b/src/main/java/com/twilio/rest/preview/understand/assistant/Dialogue.java index 6a822dadb7..33d2da25b9 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/Dialogue.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/Dialogue.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Dialogue extends Resource { private static final long serialVersionUID = 58246367939830L; @@ -187,4 +177,8 @@ public int hashCode() { data, url); } -} \ No newline at end of file + + public String toString() { + return "Dialogue(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", data=" + this.getData() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/FieldType.java b/src/main/java/com/twilio/rest/preview/understand/assistant/FieldType.java index 452e4cf0ce..fef9d1085f 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/FieldType.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/FieldType.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FieldType extends Resource { private static final long serialVersionUID = 595362134429L; @@ -300,4 +291,8 @@ public int hashCode() { uniqueName, url); } -} \ No newline at end of file + + public String toString() { + return "FieldType(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", links=" + this.getLinks() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/ModelBuild.java b/src/main/java/com/twilio/rest/preview/understand/assistant/ModelBuild.java index 2983fdaa9c..e0052cc5f0 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/ModelBuild.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/ModelBuild.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -39,11 +30,14 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ModelBuild extends Resource { private static final long serialVersionUID = 48078492703405L; - public enum Status { + public String toString() { + return "ModelBuild(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ", buildDuration=" + this.getBuildDuration() + ", errorCode=" + this.getErrorCode() + ")"; + } + + public enum Status { ENQUEUED("enqueued"), BUILDING("building"), COMPLETED("completed"), @@ -340,4 +334,4 @@ public int hashCode() { buildDuration, errorCode); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/Query.java b/src/main/java/com/twilio/rest/preview/understand/assistant/Query.java index f042734b3c..c52b1fb0d3 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/Query.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/Query.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Query extends Resource { private static final long serialVersionUID = 54679602157752L; @@ -362,4 +352,8 @@ public int hashCode() { url, sourceChannel); } -} \ No newline at end of file + + public String toString() { + return "Query(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", results=" + this.getResults() + ", language=" + this.getLanguage() + ", modelBuildSid=" + this.getModelBuildSid() + ", query=" + this.getQuery() + ", sampleSid=" + this.getSampleSid() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", status=" + this.getStatus() + ", url=" + this.getUrl() + ", sourceChannel=" + this.getSourceChannel() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/StyleSheet.java b/src/main/java/com/twilio/rest/preview/understand/assistant/StyleSheet.java index a860d06966..bf579a35fe 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/StyleSheet.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/StyleSheet.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class StyleSheet extends Resource { private static final long serialVersionUID = 3179724176697L; @@ -180,4 +170,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "StyleSheet(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/Task.java b/src/main/java/com/twilio/rest/preview/understand/assistant/Task.java index 883baf0431..fc2b31c415 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/Task.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/Task.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Task extends Resource { private static final long serialVersionUID = 120802226226536L; @@ -314,4 +305,8 @@ public int hashCode() { actionsUrl, url); } -} \ No newline at end of file + + public String toString() { + return "Task(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", links=" + this.getLinks() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", actionsUrl=" + this.getActionsUrl() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/fieldtype/FieldValue.java b/src/main/java/com/twilio/rest/preview/understand/assistant/fieldtype/FieldValue.java index db525b923f..c3cb4be7de 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/fieldtype/FieldValue.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/fieldtype/FieldValue.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FieldValue extends Resource { private static final long serialVersionUID = 196387084273361L; @@ -310,4 +300,8 @@ public int hashCode() { url, synonymOf); } -} \ No newline at end of file + + public String toString() { + return "FieldValue(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", fieldTypeSid=" + this.getFieldTypeSid() + ", language=" + this.getLanguage() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", value=" + this.getValue() + ", url=" + this.getUrl() + ", synonymOf=" + this.getSynonymOf() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/task/Field.java b/src/main/java/com/twilio/rest/preview/understand/assistant/task/Field.java index d3ad9f5698..b56cd35701 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/task/Field.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/task/Field.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Field extends Resource { private static final long serialVersionUID = 236424306351624L; @@ -299,4 +289,8 @@ public int hashCode() { uniqueName, url); } -} \ No newline at end of file + + public String toString() { + return "Field(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", fieldType=" + this.getFieldType() + ", taskSid=" + this.getTaskSid() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/task/Sample.java b/src/main/java/com/twilio/rest/preview/understand/assistant/task/Sample.java index c292c5a529..bd9818bd7e 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/task/Sample.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/task/Sample.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Sample extends Resource { private static final long serialVersionUID = 250546054765914L; @@ -327,4 +317,8 @@ public int hashCode() { url, sourceChannel); } -} \ No newline at end of file + + public String toString() { + return "Sample(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", taskSid=" + this.getTaskSid() + ", language=" + this.getLanguage() + ", assistantSid=" + this.getAssistantSid() + ", sid=" + this.getSid() + ", taggedText=" + this.getTaggedText() + ", url=" + this.getUrl() + ", sourceChannel=" + this.getSourceChannel() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskActions.java b/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskActions.java index eda5c99c3c..2d330490a7 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskActions.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskActions.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskActions extends Resource { private static final long serialVersionUID = 212176093735390L; @@ -199,4 +189,8 @@ public int hashCode() { url, data); } -} \ No newline at end of file + + public String toString() { + return "TaskActions(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", taskSid=" + this.getTaskSid() + ", url=" + this.getUrl() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskStatistics.java b/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskStatistics.java index 5d011f5047..a77e79288c 100644 --- a/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskStatistics.java +++ b/src/main/java/com/twilio/rest/preview/understand/assistant/task/TaskStatistics.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskStatistics extends Resource { private static final long serialVersionUID = 52568493998911L; @@ -201,4 +191,8 @@ public int hashCode() { fieldsCount, url); } -} \ No newline at end of file + + public String toString() { + return "TaskStatistics(accountSid=" + this.getAccountSid() + ", assistantSid=" + this.getAssistantSid() + ", taskSid=" + this.getTaskSid() + ", samplesCount=" + this.getSamplesCount() + ", fieldsCount=" + this.getFieldsCount() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/wireless/Command.java b/src/main/java/com/twilio/rest/preview/wireless/Command.java index ea97fb7bab..0d12dbce25 100644 --- a/src/main/java/com/twilio/rest/preview/wireless/Command.java +++ b/src/main/java/com/twilio/rest/preview/wireless/Command.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Command extends Resource { private static final long serialVersionUID = 102379842720145L; @@ -294,4 +284,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "Command(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", deviceSid=" + this.getDeviceSid() + ", simSid=" + this.getSimSid() + ", command=" + this.getCommand() + ", commandMode=" + this.getCommandMode() + ", status=" + this.getStatus() + ", direction=" + this.getDirection() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/wireless/RatePlan.java b/src/main/java/com/twilio/rest/preview/wireless/RatePlan.java index 3f4728f81b..fab959613c 100644 --- a/src/main/java/com/twilio/rest/preview/wireless/RatePlan.java +++ b/src/main/java/com/twilio/rest/preview/wireless/RatePlan.java @@ -17,20 +17,11 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -39,7 +30,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RatePlan extends Resource { private static final long serialVersionUID = 263617052418126L; @@ -360,4 +350,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "RatePlan(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dataEnabled=" + this.getDataEnabled() + ", dataMetering=" + this.getDataMetering() + ", dataLimit=" + this.getDataLimit() + ", messagingEnabled=" + this.getMessagingEnabled() + ", voiceEnabled=" + this.getVoiceEnabled() + ", nationalRoamingEnabled=" + this.getNationalRoamingEnabled() + ", internationalRoaming=" + this.getInternationalRoaming() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/wireless/Sim.java b/src/main/java/com/twilio/rest/preview/wireless/Sim.java index 467dfa0164..93c820ff8a 100644 --- a/src/main/java/com/twilio/rest/preview/wireless/Sim.java +++ b/src/main/java/com/twilio/rest/preview/wireless/Sim.java @@ -17,14 +17,7 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,7 +31,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Sim extends Resource { private static final long serialVersionUID = 114188106016645L; @@ -459,4 +451,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Sim(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", ratePlanSid=" + this.getRatePlanSid() + ", friendlyName=" + this.getFriendlyName() + ", iccid=" + this.getIccid() + ", eId=" + this.getEId() + ", status=" + this.getStatus() + ", commandsCallbackUrl=" + this.getCommandsCallbackUrl() + ", commandsCallbackMethod=" + this.getCommandsCallbackMethod() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/preview/wireless/sim/Usage.java b/src/main/java/com/twilio/rest/preview/wireless/sim/Usage.java index abda29282d..244f40f2f3 100644 --- a/src/main/java/com/twilio/rest/preview/wireless/sim/Usage.java +++ b/src/main/java/com/twilio/rest/preview/wireless/sim/Usage.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Usage extends Resource { private static final long serialVersionUID = 16456693522984L; @@ -244,4 +234,8 @@ public int hashCode() { dataCosts, url); } -} \ No newline at end of file + + public String toString() { + return "Usage(simSid=" + this.getSimSid() + ", simUniqueName=" + this.getSimUniqueName() + ", accountSid=" + this.getAccountSid() + ", period=" + this.getPeriod() + ", commandsUsage=" + this.getCommandsUsage() + ", commandsCosts=" + this.getCommandsCosts() + ", dataUsage=" + this.getDataUsage() + ", dataCosts=" + this.getDataCosts() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v1/messaging/Country.java b/src/main/java/com/twilio/rest/pricing/v1/messaging/Country.java index d19d53ec4b..206d842cf3 100644 --- a/src/main/java/com/twilio/rest/pricing/v1/messaging/Country.java +++ b/src/main/java/com/twilio/rest/pricing/v1/messaging/Country.java @@ -17,26 +17,16 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundSmsPrice; import com.twilio.type.OutboundSmsPrice; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Country extends Resource { private static final long serialVersionUID = 155838537182593L; @@ -210,4 +200,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Country(country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", outboundSmsPrices=" + this.getOutboundSmsPrices() + ", inboundSmsPrices=" + this.getInboundSmsPrices() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v1/phonenumber/Country.java b/src/main/java/com/twilio/rest/pricing/v1/phonenumber/Country.java index abc9cff6a2..4969e82db9 100644 --- a/src/main/java/com/twilio/rest/pricing/v1/phonenumber/Country.java +++ b/src/main/java/com/twilio/rest/pricing/v1/phonenumber/Country.java @@ -17,25 +17,15 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberPrice; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Country extends Resource { private static final long serialVersionUID = 214707935181184L; @@ -194,4 +184,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Country(country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", phoneNumberPrices=" + this.getPhoneNumberPrices() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v1/voice/Country.java b/src/main/java/com/twilio/rest/pricing/v1/voice/Country.java index b63262e9f8..5fc19242c9 100644 --- a/src/main/java/com/twilio/rest/pricing/v1/voice/Country.java +++ b/src/main/java/com/twilio/rest/pricing/v1/voice/Country.java @@ -17,26 +17,16 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundCallPrice; import com.twilio.type.OutboundPrefixPrice; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Country extends Resource { private static final long serialVersionUID = 270847470775437L; @@ -210,4 +200,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Country(country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", outboundPrefixPrices=" + this.getOutboundPrefixPrices() + ", inboundCallPrices=" + this.getInboundCallPrices() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v1/voice/Number.java b/src/main/java/com/twilio/rest/pricing/v1/voice/Number.java index e3d7ef0f89..9bf2a60654 100644 --- a/src/main/java/com/twilio/rest/pricing/v1/voice/Number.java +++ b/src/main/java/com/twilio/rest/pricing/v1/voice/Number.java @@ -17,25 +17,15 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundCallPrice; import com.twilio.type.OutboundCallPrice; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Number extends Resource { private static final long serialVersionUID = 198694876395979L; @@ -215,4 +205,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Number(number=" + this.getNumber() + ", country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", outboundCallPrice=" + this.getOutboundCallPrice() + ", inboundCallPrice=" + this.getInboundCallPrice() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v2/Country.java b/src/main/java/com/twilio/rest/pricing/v2/Country.java index c57104dce7..9373af692d 100644 --- a/src/main/java/com/twilio/rest/pricing/v2/Country.java +++ b/src/main/java/com/twilio/rest/pricing/v2/Country.java @@ -17,26 +17,16 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundCallPrice; import com.twilio.type.OutboundPrefixPriceWithOrigin; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Country extends Resource { private static final long serialVersionUID = 198700750002345L; @@ -211,4 +201,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Country(country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", terminatingPrefixPrices=" + this.getTerminatingPrefixPrices() + ", originatingCallPrices=" + this.getOriginatingCallPrices() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v2/Number.java b/src/main/java/com/twilio/rest/pricing/v2/Number.java index e771078972..afdee54d75 100644 --- a/src/main/java/com/twilio/rest/pricing/v2/Number.java +++ b/src/main/java/com/twilio/rest/pricing/v2/Number.java @@ -17,26 +17,16 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundCallPrice; import com.twilio.type.OutboundPrefixPriceWithOrigin; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Number extends Resource { private static final long serialVersionUID = 63150658787964L; @@ -232,4 +222,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Number(destinationNumber=" + this.getDestinationNumber() + ", originationNumber=" + this.getOriginationNumber() + ", country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", terminatingPrefixPrices=" + this.getTerminatingPrefixPrices() + ", originatingCallPrice=" + this.getOriginatingCallPrice() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v2/voice/Country.java b/src/main/java/com/twilio/rest/pricing/v2/voice/Country.java index 2c73f566ea..e1e6666763 100644 --- a/src/main/java/com/twilio/rest/pricing/v2/voice/Country.java +++ b/src/main/java/com/twilio/rest/pricing/v2/voice/Country.java @@ -17,26 +17,16 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundCallPrice; import com.twilio.type.OutboundPrefixPriceWithOrigin; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Country extends Resource { private static final long serialVersionUID = 185729670233380L; @@ -211,4 +201,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Country(country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", outboundPrefixPrices=" + this.getOutboundPrefixPrices() + ", inboundCallPrices=" + this.getInboundCallPrices() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/pricing/v2/voice/Number.java b/src/main/java/com/twilio/rest/pricing/v2/voice/Number.java index 7c20451018..c50bbf352f 100644 --- a/src/main/java/com/twilio/rest/pricing/v2/voice/Number.java +++ b/src/main/java/com/twilio/rest/pricing/v2/voice/Number.java @@ -17,26 +17,16 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.InboundCallPrice; import com.twilio.type.OutboundCallPriceWithOrigin; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Currency; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Number extends Resource { private static final long serialVersionUID = 178498461042765L; @@ -232,4 +222,8 @@ public int hashCode() { priceUnit, url); } -} \ No newline at end of file + + public String toString() { + return "Number(destinationNumber=" + this.getDestinationNumber() + ", originationNumber=" + this.getOriginationNumber() + ", country=" + this.getCountry() + ", isoCountry=" + this.getIsoCountry() + ", outboundCallPrices=" + this.getOutboundCallPrices() + ", inboundCallPrice=" + this.getInboundCallPrice() + ", priceUnit=" + this.getPriceUnit() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/Service.java b/src/main/java/com/twilio/rest/proxy/v1/Service.java index c417d89f07..fa058e1be8 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/Service.java +++ b/src/main/java/com/twilio/rest/proxy/v1/Service.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 93456310387892L; - public enum GeoMatchLevel { + public String toString() { + return "Service(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", chatInstanceSid=" + this.getChatInstanceSid() + ", callbackUrl=" + this.getCallbackUrl() + ", defaultTtl=" + this.getDefaultTtl() + ", numberSelectionBehavior=" + this.getNumberSelectionBehavior() + ", geoMatchLevel=" + this.getGeoMatchLevel() + ", interceptCallbackUrl=" + this.getInterceptCallbackUrl() + ", outOfSessionCallbackUrl=" + this.getOutOfSessionCallbackUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum GeoMatchLevel { AREA_CODE("area-code"), OVERLAY("overlay"), RADIUS("radius"), @@ -416,4 +411,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumber.java b/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumber.java index 9d71a6af9f..4a3a57ca33 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumber.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/PhoneNumber.java @@ -17,20 +17,11 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PhoneNumber extends Resource { private static final long serialVersionUID = 107544964482709L; @@ -341,4 +331,8 @@ public int hashCode() { isReserved, inUse); } -} \ No newline at end of file + + public String toString() { + return "PhoneNumber(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", phoneNumber=" + this.getPhoneNumber() + ", friendlyName=" + this.getFriendlyName() + ", isoCountry=" + this.getIsoCountry() + ", capabilities=" + this.getCapabilities() + ", url=" + this.getUrl() + ", isReserved=" + this.getIsReserved() + ", inUse=" + this.getInUse() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/Session.java b/src/main/java/com/twilio/rest/proxy/v1/service/Session.java index 5785a01e18..cc86c54f89 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/Session.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/Session.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Session extends Resource { private static final long serialVersionUID = 199644364043028L; - public enum Status { + public String toString() { + return "Session(sid=" + this.getSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", dateStarted=" + this.getDateStarted() + ", dateEnded=" + this.getDateEnded() + ", dateLastInteraction=" + this.getDateLastInteraction() + ", dateExpiry=" + this.getDateExpiry() + ", uniqueName=" + this.getUniqueName() + ", status=" + this.getStatus() + ", closedReason=" + this.getClosedReason() + ", ttl=" + this.getTtl() + ", mode=" + this.getMode() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { OPEN("open"), IN_PROGRESS("in-progress"), CLOSED("closed"), @@ -450,4 +445,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/ShortCode.java b/src/main/java/com/twilio/rest/proxy/v1/service/ShortCode.java index b165032ad3..5a1a8d6ba0 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/ShortCode.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/ShortCode.java @@ -17,20 +17,11 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.PhoneNumberCapabilities; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ShortCode extends Resource { private static final long serialVersionUID = 62346607367423L; @@ -313,4 +303,8 @@ public int hashCode() { url, isReserved); } -} \ No newline at end of file + + public String toString() { + return "ShortCode(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", shortCode=" + this.getShortCode() + ", isoCountry=" + this.getIsoCountry() + ", capabilities=" + this.getCapabilities() + ", url=" + this.getUrl() + ", isReserved=" + this.getIsReserved() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java b/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java index 7acac63fe9..9f07227a31 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Interaction extends Resource { private static final long serialVersionUID = 184706954085822L; - public enum Type { + public String toString() { + return "Interaction(sid=" + this.getSid() + ", sessionSid=" + this.getSessionSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", data=" + this.getData() + ", type=" + this.getType() + ", inboundParticipantSid=" + this.getInboundParticipantSid() + ", inboundResourceSid=" + this.getInboundResourceSid() + ", inboundResourceStatus=" + this.getInboundResourceStatus() + ", inboundResourceType=" + this.getInboundResourceType() + ", inboundResourceUrl=" + this.getInboundResourceUrl() + ", outboundParticipantSid=" + this.getOutboundParticipantSid() + ", outboundResourceSid=" + this.getOutboundResourceSid() + ", outboundResourceStatus=" + this.getOutboundResourceStatus() + ", outboundResourceType=" + this.getOutboundResourceType() + ", outboundResourceUrl=" + this.getOutboundResourceUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Type { MESSAGE("message"), VOICE("voice"), UNKNOWN("unknown"); @@ -496,4 +490,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/session/Participant.java b/src/main/java/com/twilio/rest/proxy/v1/service/session/Participant.java index 1f8f19f8ed..35563fdf1c 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/session/Participant.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/session/Participant.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Participant extends Resource { private static final long serialVersionUID = 233073623535354L; @@ -349,4 +340,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Participant(sid=" + this.getSid() + ", sessionSid=" + this.getSessionSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", identifier=" + this.getIdentifier() + ", proxyIdentifier=" + this.getProxyIdentifier() + ", proxyIdentifierSid=" + this.getProxyIdentifierSid() + ", dateDeleted=" + this.getDateDeleted() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/session/participant/MessageInteraction.java b/src/main/java/com/twilio/rest/proxy/v1/service/session/participant/MessageInteraction.java index 896c834165..6de99b43bd 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/session/participant/MessageInteraction.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/session/participant/MessageInteraction.java @@ -18,20 +18,11 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -39,11 +30,15 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class MessageInteraction extends Resource { private static final long serialVersionUID = 180423233818859L; - public enum Type { + public String toString() { + return "MessageInteraction(sid=" + this.getSid() + ", sessionSid=" + this.getSessionSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", data=" + this.getData() + ", type=" + this.getType() + ", participantSid=" + this.getParticipantSid() + ", inboundParticipantSid=" + this.getInboundParticipantSid() + ", inboundResourceSid=" + this.getInboundResourceSid() + ", inboundResourceStatus=" + this.getInboundResourceStatus() + ", inboundResourceType=" + this.getInboundResourceType() + ", inboundResourceUrl=" + this.getInboundResourceUrl() + ", outboundParticipantSid=" + this.getOutboundParticipantSid() + ", outboundResourceSid=" + this.getOutboundResourceSid() + ", outboundResourceStatus=" + this.getOutboundResourceStatus() + ", outboundResourceType=" + this.getOutboundResourceType() + ", outboundResourceUrl=" + this.getOutboundResourceUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + + this.getUrl() + ")"; + } + + public enum Type { MESSAGE("message"), VOICE("voice"), UNKNOWN("unknown"); @@ -534,4 +529,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/Service.java b/src/main/java/com/twilio/rest/serverless/v1/Service.java index a9fcb227d3..a81619353d 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/Service.java +++ b/src/main/java/com/twilio/rest/serverless/v1/Service.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 231742675028057L; @@ -309,4 +300,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", uniqueName=" + this.getUniqueName() + ", includeCredentials=" + this.getIncludeCredentials() + ", uiEditable=" + this.getUiEditable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/Asset.java b/src/main/java/com/twilio/rest/serverless/v1/service/Asset.java index a44543d485..a363378212 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/Asset.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/Asset.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Asset extends Resource { private static final long serialVersionUID = 37942173237399L; @@ -285,4 +276,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Asset(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/Build.java b/src/main/java/com/twilio/rest/serverless/v1/service/Build.java index bd6faaeff6..43fc742093 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/Build.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/Build.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -40,11 +31,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Build extends Resource { private static final long serialVersionUID = 267460910114128L; - public enum Status { + public String toString() { + return "Build(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", status=" + this.getStatus() + ", assetVersions=" + this.getAssetVersions() + ", functionVersions=" + this.getFunctionVersions() + ", dependencies=" + this.getDependencies() + ", runtime=" + this.getRuntime() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { BUILDING("building"), COMPLETED("completed"), FAILED("failed"); @@ -389,4 +383,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/Environment.java b/src/main/java/com/twilio/rest/serverless/v1/service/Environment.java index 9fcb8e41d1..e0cf9e0ce4 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/Environment.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/Environment.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Environment extends Resource { private static final long serialVersionUID = 171611678539835L; @@ -326,4 +317,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Environment(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", buildSid=" + this.getBuildSid() + ", uniqueName=" + this.getUniqueName() + ", domainSuffix=" + this.getDomainSuffix() + ", domainName=" + this.getDomainName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/Function.java b/src/main/java/com/twilio/rest/serverless/v1/service/Function.java index b92ab1425e..e64e99afba 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/Function.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/Function.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Function extends Resource { private static final long serialVersionUID = 37942173237399L; @@ -289,4 +280,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Function(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/asset/AssetVersion.java b/src/main/java/com/twilio/rest/serverless/v1/service/asset/AssetVersion.java index 1f79976544..ec93cfec03 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/asset/AssetVersion.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/asset/AssetVersion.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AssetVersion extends Resource { private static final long serialVersionUID = 182506144428248L; - public enum Visibility { + public String toString() { + return "AssetVersion(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", assetSid=" + this.getAssetSid() + ", path=" + this.getPath() + ", visibility=" + this.getVisibility() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } + + public enum Visibility { PUBLIC("public"), PRIVATE("private"), PROTECTED("protected"); @@ -284,4 +278,4 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/build/BuildStatus.java b/src/main/java/com/twilio/rest/serverless/v1/service/build/BuildStatus.java index 9768bc5d8a..9dd4b5f810 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/build/BuildStatus.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/build/BuildStatus.java @@ -17,18 +17,9 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,11 +27,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class BuildStatus extends Resource { private static final long serialVersionUID = 147679596775059L; - public enum Status { + public String toString() { + return "BuildStatus(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", status=" + this.getStatus() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { BUILDING("building"), COMPLETED("completed"), FAILED("failed"); @@ -212,4 +206,4 @@ public int hashCode() { status, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Deployment.java b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Deployment.java index 7f5aec40d9..f774fbf2a1 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Deployment.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Deployment.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Deployment extends Resource { private static final long serialVersionUID = 221470253748944L; @@ -269,4 +259,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "Deployment(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", environmentSid=" + this.getEnvironmentSid() + ", buildSid=" + this.getBuildSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java index 0a2a774302..08d3a4bd3e 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Log.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Log extends Resource { private static final long serialVersionUID = 212890795162634L; - public enum Level { + public String toString() { + return "Log(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", environmentSid=" + this.getEnvironmentSid() + ", buildSid=" + this.getBuildSid() + ", deploymentSid=" + this.getDeploymentSid() + ", functionSid=" + this.getFunctionSid() + ", requestSid=" + this.getRequestSid() + ", level=" + this.getLevel() + ", message=" + this.getMessage() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } + + public enum Level { INFO("info"), WARN("warn"), ERROR("error"); @@ -334,4 +328,4 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Variable.java b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Variable.java index 8d59858413..ac83e384e4 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/environment/Variable.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/environment/Variable.java @@ -17,19 +17,10 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Variable extends Resource { private static final long serialVersionUID = 42792745498769L; @@ -319,4 +309,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "Variable(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", environmentSid=" + this.getEnvironmentSid() + ", key=" + this.getKey() + ", value=" + this.getValue() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/function/FunctionVersion.java b/src/main/java/com/twilio/rest/serverless/v1/service/function/FunctionVersion.java index 28604bce4c..0e70a8501b 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/function/FunctionVersion.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/function/FunctionVersion.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FunctionVersion extends Resource { private static final long serialVersionUID = 198867416400366L; - public enum Visibility { + public String toString() { + return "FunctionVersion(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", functionSid=" + this.getFunctionSid() + ", path=" + this.getPath() + ", visibility=" + this.getVisibility() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Visibility { PUBLIC("public"), PRIVATE("private"), PROTECTED("protected"); @@ -302,4 +297,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/function/functionversion/FunctionVersionContent.java b/src/main/java/com/twilio/rest/serverless/v1/service/function/functionversion/FunctionVersionContent.java index 2260f98730..4957f345ed 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/function/functionversion/FunctionVersionContent.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/function/functionversion/FunctionVersionContent.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -35,7 +26,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FunctionVersionContent extends Resource { private static final long serialVersionUID = 128349955760970L; @@ -206,4 +196,8 @@ public int hashCode() { content, url); } -} \ No newline at end of file + + public String toString() { + return "FunctionVersionContent(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", functionSid=" + this.getFunctionSid() + ", content=" + this.getContent() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v1/Flow.java b/src/main/java/com/twilio/rest/studio/v1/Flow.java index 270e9f083f..919ff29977 100644 --- a/src/main/java/com/twilio/rest/studio/v1/Flow.java +++ b/src/main/java/com/twilio/rest/studio/v1/Flow.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Flow extends Resource { private static final long serialVersionUID = 111627712697750L; - public enum Status { + public String toString() { + return "Flow(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", status=" + this.getStatus() + ", version=" + this.getVersion() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { DRAFT("draft"), PUBLISHED("published"); @@ -285,4 +280,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/Engagement.java b/src/main/java/com/twilio/rest/studio/v1/flow/Engagement.java index 11b77faeb4..7b9e37992b 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/Engagement.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/Engagement.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Engagement extends Resource { private static final long serialVersionUID = 131970036431728L; - public enum Status { + public String toString() { + return "Engagement(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", flowSid=" + this.getFlowSid() + ", contactSid=" + this.getContactSid() + ", contactChannelAddress=" + this.getContactChannelAddress() + ", context=" + this.getContext() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { ACTIVE("active"), ENDED("ended"); @@ -341,4 +335,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/Execution.java b/src/main/java/com/twilio/rest/studio/v1/flow/Execution.java index 896b0e51b8..941fa3910b 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/Execution.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/Execution.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Execution extends Resource { private static final long serialVersionUID = 259041091594783L; - public enum Status { + public String toString() { + return "Execution(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", flowSid=" + this.getFlowSid() + ", contactSid=" + this.getContactSid() + ", contactChannelAddress=" + this.getContactChannelAddress() + ", context=" + this.getContext() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { ACTIVE("active"), ENDED("ended"); @@ -353,4 +347,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/EngagementContext.java b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/EngagementContext.java index d954801ed9..9c3b3113b6 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/EngagementContext.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/EngagementContext.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class EngagementContext extends Resource { private static final long serialVersionUID = 165571935124227L; @@ -182,4 +172,8 @@ public int hashCode() { flowSid, url); } -} \ No newline at end of file + + public String toString() { + return "EngagementContext(accountSid=" + this.getAccountSid() + ", context=" + this.getContext() + ", engagementSid=" + this.getEngagementSid() + ", flowSid=" + this.getFlowSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java index 15c5fe0a95..6955aececf 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Step extends Resource { private static final long serialVersionUID = 221317830784095L; @@ -302,4 +292,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Step(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", flowSid=" + this.getFlowSid() + ", engagementSid=" + this.getEngagementSid() + ", name=" + this.getName() + ", context=" + this.getContext() + ", transitionedFrom=" + this.getTransitionedFrom() + ", transitionedTo=" + this.getTransitionedTo() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/step/StepContext.java b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/step/StepContext.java index ddb33440fc..cb318b3bcf 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/step/StepContext.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/step/StepContext.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class StepContext extends Resource { private static final long serialVersionUID = 27085286936981L; @@ -199,4 +189,8 @@ public int hashCode() { stepSid, url); } -} \ No newline at end of file + + public String toString() { + return "StepContext(accountSid=" + this.getAccountSid() + ", context=" + this.getContext() + ", engagementSid=" + this.getEngagementSid() + ", flowSid=" + this.getFlowSid() + ", stepSid=" + this.getStepSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionContext.java b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionContext.java index afa7fdfc4c..4039040a75 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionContext.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionContext.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExecutionContext extends Resource { private static final long serialVersionUID = 274461811661129L; @@ -182,4 +172,8 @@ public int hashCode() { executionSid, url); } -} \ No newline at end of file + + public String toString() { + return "ExecutionContext(accountSid=" + this.getAccountSid() + ", context=" + this.getContext() + ", flowSid=" + this.getFlowSid() + ", executionSid=" + this.getExecutionSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java index 84124887db..edc4323a39 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExecutionStep extends Resource { private static final long serialVersionUID = 111880953972806L; @@ -303,4 +293,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "ExecutionStep(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", flowSid=" + this.getFlowSid() + ", executionSid=" + this.getExecutionSid() + ", name=" + this.getName() + ", context=" + this.getContext() + ", transitionedFrom=" + this.getTransitionedFrom() + ", transitionedTo=" + this.getTransitionedTo() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/execution/executionstep/ExecutionStepContext.java b/src/main/java/com/twilio/rest/studio/v1/flow/execution/executionstep/ExecutionStepContext.java index e972c727de..59243de4ef 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/execution/executionstep/ExecutionStepContext.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/execution/executionstep/ExecutionStepContext.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExecutionStepContext extends Resource { private static final long serialVersionUID = 255055850550863L; @@ -199,4 +189,8 @@ public int hashCode() { stepSid, url); } -} \ No newline at end of file + + public String toString() { + return "ExecutionStepContext(accountSid=" + this.getAccountSid() + ", context=" + this.getContext() + ", executionSid=" + this.getExecutionSid() + ", flowSid=" + this.getFlowSid() + ", stepSid=" + this.getStepSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v2/Flow.java b/src/main/java/com/twilio/rest/studio/v2/Flow.java index 7bc4350ff4..a80eaa274a 100644 --- a/src/main/java/com/twilio/rest/studio/v2/Flow.java +++ b/src/main/java/com/twilio/rest/studio/v2/Flow.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Flow extends Resource { private static final long serialVersionUID = 55575307420038L; - public enum Status { + public String toString() { + return "Flow(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", definition=" + this.getDefinition() + ", status=" + this.getStatus() + ", revision=" + this.getRevision() + ", commitMessage=" + this.getCommitMessage() + ", valid=" + this.getValid() + ", errors=" + this.getErrors() + ", warnings=" + this.getWarnings() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", webhookUrl=" + this.getWebhookUrl() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { DRAFT("draft"), PUBLISHED("published"); @@ -403,4 +397,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v2/FlowValidate.java b/src/main/java/com/twilio/rest/studio/v2/FlowValidate.java index a0726b14bc..3a64540f4d 100644 --- a/src/main/java/com/twilio/rest/studio/v2/FlowValidate.java +++ b/src/main/java/com/twilio/rest/studio/v2/FlowValidate.java @@ -14,29 +14,23 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FlowValidate extends Resource { private static final long serialVersionUID = 128242236604078L; - public enum Status { + public String toString() { + return "FlowValidate(valid=" + this.getValid() + ")"; + } + + public enum Status { DRAFT("draft"), PUBLISHED("published"); @@ -149,4 +143,4 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(valid); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/Execution.java b/src/main/java/com/twilio/rest/studio/v2/flow/Execution.java index cdf7444438..1cf848d332 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/Execution.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/Execution.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Execution extends Resource { private static final long serialVersionUID = 279149311174573L; - public enum Status { + public String toString() { + return "Execution(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", flowSid=" + this.getFlowSid() + ", contactChannelAddress=" + this.getContactChannelAddress() + ", context=" + this.getContext() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { ACTIVE("active"), ENDED("ended"); @@ -338,4 +332,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/FlowRevision.java b/src/main/java/com/twilio/rest/studio/v2/flow/FlowRevision.java index f6dfd3ffa5..88eed1a658 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/FlowRevision.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/FlowRevision.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FlowRevision extends Resource { private static final long serialVersionUID = 118153433744018L; - public enum Status { + public String toString() { + return "FlowRevision(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", definition=" + this.getDefinition() + ", status=" + this.getStatus() + ", revision=" + this.getRevision() + ", commitMessage=" + this.getCommitMessage() + ", valid=" + this.getValid() + ", errors=" + this.getErrors() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { DRAFT("draft"), PUBLISHED("published"); @@ -327,4 +321,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/FlowTestUser.java b/src/main/java/com/twilio/rest/studio/v2/flow/FlowTestUser.java index b8bcc14290..2df9f92cf1 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/FlowTestUser.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/FlowTestUser.java @@ -16,23 +16,13 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FlowTestUser extends Resource { private static final long serialVersionUID = 179832058834973L; @@ -165,4 +155,8 @@ public int hashCode() { testUsers, url); } -} \ No newline at end of file + + public String toString() { + return "FlowTestUser(sid=" + this.getSid() + ", testUsers=" + this.getTestUsers() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionContext.java b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionContext.java index 5027a437c7..3955b9c0ab 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionContext.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionContext.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExecutionContext extends Resource { private static final long serialVersionUID = 274461811661129L; @@ -182,4 +172,8 @@ public int hashCode() { executionSid, url); } -} \ No newline at end of file + + public String toString() { + return "ExecutionContext(accountSid=" + this.getAccountSid() + ", context=" + this.getContext() + ", flowSid=" + this.getFlowSid() + ", executionSid=" + this.getExecutionSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java index 10befff899..1824dfffcd 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExecutionStep extends Resource { private static final long serialVersionUID = 111880953972806L; @@ -303,4 +293,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "ExecutionStep(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", flowSid=" + this.getFlowSid() + ", executionSid=" + this.getExecutionSid() + ", name=" + this.getName() + ", context=" + this.getContext() + ", transitionedFrom=" + this.getTransitionedFrom() + ", transitionedTo=" + this.getTransitionedTo() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/execution/executionstep/ExecutionStepContext.java b/src/main/java/com/twilio/rest/studio/v2/flow/execution/executionstep/ExecutionStepContext.java index 4dac059dcd..86ac8ed342 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/execution/executionstep/ExecutionStepContext.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/execution/executionstep/ExecutionStepContext.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ExecutionStepContext extends Resource { private static final long serialVersionUID = 255055850550863L; @@ -199,4 +189,8 @@ public int hashCode() { stepSid, url); } -} \ No newline at end of file + + public String toString() { + return "ExecutionStepContext(accountSid=" + this.getAccountSid() + ", context=" + this.getContext() + ", executionSid=" + this.getExecutionSid() + ", flowSid=" + this.getFlowSid() + ", stepSid=" + this.getStepSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/Command.java b/src/main/java/com/twilio/rest/supersim/v1/Command.java index 0da527da7e..123a78f579 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/Command.java +++ b/src/main/java/com/twilio/rest/supersim/v1/Command.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Command extends Resource { private static final long serialVersionUID = 261266266354449L; - public enum Status { + public String toString() { + return "Command(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", simSid=" + this.getSimSid() + ", command=" + this.getCommand() + ", status=" + this.getStatus() + ", direction=" + this.getDirection() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { QUEUED("queued"), SENT("sent"), DELIVERED("delivered"), @@ -319,4 +313,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/Fleet.java b/src/main/java/com/twilio/rest/supersim/v1/Fleet.java index 1cde33b58c..008b9de80f 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/Fleet.java +++ b/src/main/java/com/twilio/rest/supersim/v1/Fleet.java @@ -18,19 +18,11 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Fleet extends Resource { private static final long serialVersionUID = 83912459681962L; - public enum DataMetering { + public String toString() { + return "Fleet(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", dataEnabled=" + this.getDataEnabled() + ", dataLimit=" + this.getDataLimit() + ", dataMetering=" + this.getDataMetering() + ", commandsEnabled=" + this.getCommandsEnabled() + ", commandsUrl=" + this.getCommandsUrl() + ", commandsMethod=" + this.getCommandsMethod() + ", smsCommandsEnabled=" + this.getSmsCommandsEnabled() + ", smsCommandsUrl=" + this.getSmsCommandsUrl() + ", smsCommandsMethod=" + this.getSmsCommandsMethod() + ", networkAccessProfileSid=" + this.getNetworkAccessProfileSid() + ")"; + } + + public enum DataMetering { PAYG("payg"); private final String value; @@ -420,4 +415,4 @@ public int hashCode() { smsCommandsMethod, networkAccessProfileSid); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/Network.java b/src/main/java/com/twilio/rest/supersim/v1/Network.java index 90be05d86f..776a733ce2 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/Network.java +++ b/src/main/java/com/twilio/rest/supersim/v1/Network.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Network extends Resource { private static final long serialVersionUID = 60909399655489L; @@ -193,4 +183,8 @@ public int hashCode() { isoCountry, identifiers); } -} \ No newline at end of file + + public String toString() { + return "Network(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", url=" + this.getUrl() + ", isoCountry=" + this.getIsoCountry() + ", identifiers=" + this.getIdentifiers() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/NetworkAccessProfile.java b/src/main/java/com/twilio/rest/supersim/v1/NetworkAccessProfile.java index 15c54771f5..981c3ec012 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/NetworkAccessProfile.java +++ b/src/main/java/com/twilio/rest/supersim/v1/NetworkAccessProfile.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class NetworkAccessProfile extends Resource { private static final long serialVersionUID = 248233981028647L; @@ -243,4 +234,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "NetworkAccessProfile(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/Sim.java b/src/main/java/com/twilio/rest/supersim/v1/Sim.java index 27085f91f8..2b0a89c9a9 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/Sim.java +++ b/src/main/java/com/twilio/rest/supersim/v1/Sim.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -38,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Sim extends Resource { private static final long serialVersionUID = 138273270353019L; - public enum Status { + public String toString() { + return "Sim(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", iccid=" + this.getIccid() + ", status=" + this.getStatus() + ", fleetSid=" + this.getFleetSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { NEW("new"), READY("ready"), ACTIVE("active"), @@ -348,4 +343,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/SmsCommand.java b/src/main/java/com/twilio/rest/supersim/v1/SmsCommand.java index fa7ab229ed..3382bad4c5 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/SmsCommand.java +++ b/src/main/java/com/twilio/rest/supersim/v1/SmsCommand.java @@ -18,19 +18,10 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -38,11 +29,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SmsCommand extends Resource { private static final long serialVersionUID = 198262975015218L; - public enum Status { + public String toString() { + return "SmsCommand(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", simSid=" + this.getSimSid() + ", payload=" + this.getPayload() + ", status=" + this.getStatus() + ", direction=" + this.getDirection() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { QUEUED("queued"), SENT("sent"), DELIVERED("delivered"), @@ -320,4 +314,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java b/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java index aa0c43a845..e10152af64 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java +++ b/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; @@ -36,11 +27,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UsageRecord extends Resource { private static final long serialVersionUID = 259624164977521L; - public enum Granularity { + public String toString() { + return "UsageRecord(accountSid=" + this.getAccountSid() + ", simSid=" + this.getSimSid() + ", networkSid=" + this.getNetworkSid() + ", fleetSid=" + this.getFleetSid() + ", isoCountry=" + this.getIsoCountry() + ", period=" + this.getPeriod() + ", dataUpload=" + this.getDataUpload() + ", dataDownload=" + this.getDataDownload() + ", dataTotal=" + this.getDataTotal() + ")"; + } + + public enum Granularity { HOUR("hour"), DAY("day"), ALL("all"); @@ -320,4 +314,4 @@ public int hashCode() { dataDownload, dataTotal); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetwork.java b/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetwork.java index b6e4b81eeb..de2c1fa5af 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetwork.java +++ b/src/main/java/com/twilio/rest/supersim/v1/networkaccessprofile/NetworkAccessProfileNetwork.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +28,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class NetworkAccessProfileNetwork extends Resource { private static final long serialVersionUID = 26561188761279L; @@ -241,4 +231,8 @@ public int hashCode() { identifiers, url); } -} \ No newline at end of file + + public String toString() { + return "NetworkAccessProfileNetwork(sid=" + this.getSid() + ", networkAccessProfileSid=" + this.getNetworkAccessProfileSid() + ", friendlyName=" + this.getFriendlyName() + ", isoCountry=" + this.getIsoCountry() + ", identifiers=" + this.getIdentifiers() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/supersim/v1/sim/BillingPeriod.java b/src/main/java/com/twilio/rest/supersim/v1/sim/BillingPeriod.java index 088650b59d..741b932ada 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/sim/BillingPeriod.java +++ b/src/main/java/com/twilio/rest/supersim/v1/sim/BillingPeriod.java @@ -18,26 +18,20 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class BillingPeriod extends Resource { private static final long serialVersionUID = 174789131937976L; - public enum BpType { + public String toString() { + return "BillingPeriod(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", simSid=" + this.getSimSid() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", periodType=" + this.getPeriodType() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum BpType { READY("ready"), ACTIVE("active"); @@ -251,4 +245,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/sync/v1/Service.java b/src/main/java/com/twilio/rest/sync/v1/Service.java index f08b83c91e..f558c78abc 100644 --- a/src/main/java/com/twilio/rest/sync/v1/Service.java +++ b/src/main/java/com/twilio/rest/sync/v1/Service.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 2344628544363L; @@ -361,4 +352,8 @@ public int hashCode() { reachabilityDebouncingWindow, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", webhookUrl=" + this.getWebhookUrl() + ", webhooksFromRestEnabled=" + this.getWebhooksFromRestEnabled() + ", reachabilityWebhooksEnabled=" + this.getReachabilityWebhooksEnabled() + ", aclEnabled=" + this.getAclEnabled() + ", reachabilityDebouncingEnabled=" + this.getReachabilityDebouncingEnabled() + ", reachabilityDebouncingWindow=" + this.getReachabilityDebouncingWindow() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/Document.java b/src/main/java/com/twilio/rest/sync/v1/service/Document.java index a5bc7ba586..2605eb9498 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/Document.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/Document.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Document extends Resource { private static final long serialVersionUID = 114918671939352L; @@ -340,4 +330,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "Document(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", revision=" + this.getRevision() + ", data=" + this.getData() + ", dateExpires=" + this.getDateExpires() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/SyncList.java b/src/main/java/com/twilio/rest/sync/v1/service/SyncList.java index 1ab9cdbbd4..8a5cad64d4 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/SyncList.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/SyncList.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncList extends Resource { private static final long serialVersionUID = 113063121662943L; @@ -322,4 +313,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "SyncList(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", revision=" + this.getRevision() + ", dateExpires=" + this.getDateExpires() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/SyncMap.java b/src/main/java/com/twilio/rest/sync/v1/service/SyncMap.java index 79795a52f2..62eb375fe8 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/SyncMap.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/SyncMap.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncMap extends Resource { private static final long serialVersionUID = 113063121662943L; @@ -320,4 +311,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "SyncMap(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", revision=" + this.getRevision() + ", dateExpires=" + this.getDateExpires() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/SyncStream.java b/src/main/java/com/twilio/rest/sync/v1/service/SyncStream.java index 35f7bbea4d..610dca1061 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/SyncStream.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/SyncStream.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncStream extends Resource { private static final long serialVersionUID = 240146789601739L; @@ -306,4 +297,8 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file + + public String toString() { + return "SyncStream(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", dateExpires=" + this.getDateExpires() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermission.java b/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermission.java index 6fe25601d2..278944998c 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermission.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/document/DocumentPermission.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DocumentPermission extends Resource { private static final long serialVersionUID = 172715793000822L; @@ -286,4 +276,8 @@ public int hashCode() { manage, url); } -} \ No newline at end of file + + public String toString() { + return "DocumentPermission(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", documentSid=" + this.getDocumentSid() + ", identity=" + this.getIdentity() + ", read=" + this.getRead() + ", write=" + this.getWrite() + ", manage=" + this.getManage() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItem.java b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItem.java index e7b7dd27d1..37a22c4c48 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItem.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListItem.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncListItem extends Resource { private static final long serialVersionUID = 156990163506527L; - public enum QueryResultOrder { + public String toString() { + return "SyncListItem(index=" + this.getIndex() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", listSid=" + this.getListSid() + ", url=" + this.getUrl() + ", revision=" + this.getRevision() + ", data=" + this.getData() + ", dateExpires=" + this.getDateExpires() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } + + public enum QueryResultOrder { ASC("asc"), DESC("desc"); @@ -389,4 +383,4 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermission.java b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermission.java index fa3206079b..eb1cf8c5c4 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermission.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/synclist/SyncListPermission.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncListPermission extends Resource { private static final long serialVersionUID = 53631144313647L; @@ -285,4 +275,8 @@ public int hashCode() { manage, url); } -} \ No newline at end of file + + public String toString() { + return "SyncListPermission(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", listSid=" + this.getListSid() + ", identity=" + this.getIdentity() + ", read=" + this.getRead() + ", write=" + this.getWrite() + ", manage=" + this.getManage() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java index 63a2afe3e2..5169f1551b 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncMapItem extends Resource { private static final long serialVersionUID = 280430240185290L; - public enum QueryResultOrder { + public String toString() { + return "SyncMapItem(key=" + this.getKey() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", mapSid=" + this.getMapSid() + ", url=" + this.getUrl() + ", revision=" + this.getRevision() + ", data=" + this.getData() + ", dateExpires=" + this.getDateExpires() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", createdBy=" + this.getCreatedBy() + ")"; + } + + public enum QueryResultOrder { ASC("asc"), DESC("desc"); @@ -392,4 +386,4 @@ public int hashCode() { dateUpdated, createdBy); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermission.java b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermission.java index 7b940f2480..cad935afa9 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermission.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapPermission.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SyncMapPermission extends Resource { private static final long serialVersionUID = 261843483205862L; @@ -286,4 +276,8 @@ public int hashCode() { manage, url); } -} \ No newline at end of file + + public String toString() { + return "SyncMapPermission(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", mapSid=" + this.getMapSid() + ", identity=" + this.getIdentity() + ", read=" + this.getRead() + ", write=" + this.getWrite() + ", manage=" + this.getManage() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/sync/v1/service/syncstream/StreamMessage.java b/src/main/java/com/twilio/rest/sync/v1/service/syncstream/StreamMessage.java index d667776f63..c65b056ec6 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/syncstream/StreamMessage.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/syncstream/StreamMessage.java @@ -14,24 +14,14 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class StreamMessage extends Resource { private static final long serialVersionUID = 144642288348060L; @@ -141,4 +131,8 @@ public int hashCode() { return Objects.hash(sid, data); } -} \ No newline at end of file + + public String toString() { + return "StreamMessage(sid=" + this.getSid() + ", data=" + this.getData() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/Workspace.java b/src/main/java/com/twilio/rest/taskrouter/v1/Workspace.java index 71a87b2c1e..e07d4585be 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/Workspace.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/Workspace.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Workspace extends Resource { private static final long serialVersionUID = 173419493907327L; - public enum QueueOrder { + public String toString() { + return "Workspace(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", defaultActivityName=" + this.getDefaultActivityName() + ", defaultActivitySid=" + this.getDefaultActivitySid() + ", eventCallbackUrl=" + this.getEventCallbackUrl() + ", eventsFilter=" + this.getEventsFilter() + ", friendlyName=" + this.getFriendlyName() + ", multiTaskEnabled=" + this.getMultiTaskEnabled() + ", sid=" + this.getSid() + ", timeoutActivityName=" + this.getTimeoutActivityName() + ", timeoutActivitySid=" + this.getTimeoutActivitySid() + ", prioritizeQueueOrder=" + this.getPrioritizeQueueOrder() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum QueueOrder { FIFO("FIFO"), LIFO("LIFO"); @@ -402,4 +397,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Activity.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Activity.java index f08e33d3f5..35ecaaf057 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Activity.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Activity.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Activity extends Resource { private static final long serialVersionUID = 50037704771457L; @@ -296,4 +287,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Activity(accountSid=" + this.getAccountSid() + ", available=" + this.getAvailable() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Event.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Event.java index ce4be237c3..f363ef646d 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Event.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Event.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Event extends Resource { private static final long serialVersionUID = 88063843569402L; @@ -373,4 +363,8 @@ public int hashCode() { url, workspaceSid); } -} \ No newline at end of file + + public String toString() { + return "Event(accountSid=" + this.getAccountSid() + ", actorSid=" + this.getActorSid() + ", actorType=" + this.getActorType() + ", actorUrl=" + this.getActorUrl() + ", description=" + this.getDescription() + ", eventData=" + this.getEventData() + ", eventDate=" + this.getEventDate() + ", eventDateMs=" + this.getEventDateMs() + ", eventType=" + this.getEventType() + ", resourceSid=" + this.getResourceSid() + ", resourceType=" + this.getResourceType() + ", resourceUrl=" + this.getResourceUrl() + ", sid=" + this.getSid() + ", source=" + this.getSource() + ", sourceIpAddress=" + this.getSourceIpAddress() + ", url=" + this.getUrl() + ", workspaceSid=" + this.getWorkspaceSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Task.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Task.java index cd437876b8..ee6c18ac98 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Task.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Task.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Task extends Resource { private static final long serialVersionUID = 238267579862423L; - public enum Status { + public String toString() { + return "Task(accountSid=" + this.getAccountSid() + ", age=" + this.getAge() + ", assignmentStatus=" + this.getAssignmentStatus() + ", attributes=" + this.getAttributes() + ", addons=" + this.getAddons() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", taskQueueEnteredDate=" + this.getTaskQueueEnteredDate() + ", priority=" + this.getPriority() + ", reason=" + this.getReason() + ", sid=" + this.getSid() + ", taskQueueSid=" + this.getTaskQueueSid() + ", taskQueueFriendlyName=" + this.getTaskQueueFriendlyName() + ", taskChannelSid=" + this.getTaskChannelSid() + ", taskChannelUniqueName=" + this.getTaskChannelUniqueName() + ", timeout=" + this.getTimeout() + ", workflowSid=" + this.getWorkflowSid() + ", workflowFriendlyName=" + this.getWorkflowFriendlyName() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { PENDING("pending"), RESERVED("reserved"), ASSIGNED("assigned"), @@ -502,4 +497,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannel.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannel.java index 1c157d2140..0e866100e7 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannel.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskChannel.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskChannel extends Resource { private static final long serialVersionUID = 87520156212725L; @@ -314,4 +305,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "TaskChannel(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", workspaceSid=" + this.getWorkspaceSid() + ", channelOptimizedRouting=" + this.getChannelOptimizedRouting() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueue.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueue.java index f811012106..0523060196 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueue.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/TaskQueue.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskQueue extends Resource { private static final long serialVersionUID = 31174194031326L; - public enum TaskOrder { + public String toString() { + return "TaskQueue(accountSid=" + this.getAccountSid() + ", assignmentActivitySid=" + this.getAssignmentActivitySid() + ", assignmentActivityName=" + this.getAssignmentActivityName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", maxReservedWorkers=" + this.getMaxReservedWorkers() + ", reservationActivitySid=" + this.getReservationActivitySid() + ", reservationActivityName=" + this.getReservationActivityName() + ", sid=" + this.getSid() + ", targetWorkers=" + this.getTargetWorkers() + ", taskOrder=" + this.getTaskOrder() + ", url=" + this.getUrl() + ", workspaceSid=" + this.getWorkspaceSid() + ", links=" + this.getLinks() + ")"; + } + + public enum TaskOrder { FIFO("FIFO"), LIFO("LIFO"); @@ -416,4 +411,4 @@ public int hashCode() { workspaceSid, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Worker.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Worker.java index 92447a4e88..ec0fde807d 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Worker.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Worker.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Worker extends Resource { private static final long serialVersionUID = 71992031157502L; @@ -349,4 +340,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Worker(accountSid=" + this.getAccountSid() + ", activityName=" + this.getActivityName() + ", activitySid=" + this.getActivitySid() + ", attributes=" + this.getAttributes() + ", available=" + this.getAvailable() + ", dateCreated=" + this.getDateCreated() + ", dateStatusChanged=" + this.getDateStatusChanged() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Workflow.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Workflow.java index 8f278db0f4..afb66eec33 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Workflow.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/Workflow.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Workflow extends Resource { private static final long serialVersionUID = 205559746169581L; @@ -360,4 +351,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Workflow(accountSid=" + this.getAccountSid() + ", assignmentCallbackUrl=" + this.getAssignmentCallbackUrl() + ", configuration=" + this.getConfiguration() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", documentContentType=" + this.getDocumentContentType() + ", fallbackAssignmentCallbackUrl=" + this.getFallbackAssignmentCallbackUrl() + ", friendlyName=" + this.getFriendlyName() + ", sid=" + this.getSid() + ", taskReservationTimeout=" + this.getTaskReservationTimeout() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceCumulativeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceCumulativeStatistics.java index 41b91d4d61..c9886de4bd 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceCumulativeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceCumulativeStatistics.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkspaceCumulativeStatistics extends Resource { private static final long serialVersionUID = 278709267705066L; @@ -427,4 +417,9 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkspaceCumulativeStatistics(accountSid=" + this.getAccountSid() + ", avgTaskAcceptanceTime=" + this.getAvgTaskAcceptanceTime() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", reservationsCreated=" + this.getReservationsCreated() + ", reservationsAccepted=" + this.getReservationsAccepted() + ", reservationsRejected=" + this.getReservationsRejected() + ", reservationsTimedOut=" + this.getReservationsTimedOut() + ", reservationsCanceled=" + this.getReservationsCanceled() + ", reservationsRescinded=" + this.getReservationsRescinded() + ", splitByWaitTime=" + this.getSplitByWaitTime() + ", waitDurationUntilAccepted=" + this.getWaitDurationUntilAccepted() + ", waitDurationUntilCanceled=" + this.getWaitDurationUntilCanceled() + ", tasksCanceled=" + this.getTasksCanceled() + ", tasksCompleted=" + this.getTasksCompleted() + ", tasksCreated=" + this.getTasksCreated() + ", tasksDeleted=" + this.getTasksDeleted() + ", tasksMoved=" + this.getTasksMoved() + + ", tasksTimedOutInWorkflow=" + this.getTasksTimedOutInWorkflow() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceRealTimeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceRealTimeStatistics.java index de67e20932..ae881646bf 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceRealTimeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceRealTimeStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkspaceRealTimeStatistics extends Resource { private static final long serialVersionUID = 18728955594793L; @@ -256,4 +246,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkspaceRealTimeStatistics(accountSid=" + this.getAccountSid() + ", activityStatistics=" + this.getActivityStatistics() + ", longestTaskWaitingAge=" + this.getLongestTaskWaitingAge() + ", longestTaskWaitingSid=" + this.getLongestTaskWaitingSid() + ", tasksByPriority=" + this.getTasksByPriority() + ", tasksByStatus=" + this.getTasksByStatus() + ", totalTasks=" + this.getTotalTasks() + ", totalWorkers=" + this.getTotalWorkers() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceStatistics.java index a14a262cf2..a9de2e82b3 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/WorkspaceStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkspaceStatistics extends Resource { private static final long serialVersionUID = 181724864721054L; @@ -180,4 +170,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkspaceStatistics(realtime=" + this.getRealtime() + ", cumulative=" + this.getCumulative() + ", accountSid=" + this.getAccountSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java index de7f73df9c..c24f13c108 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Reservation extends Resource { private static final long serialVersionUID = 63448280807644L; - public enum Status { + public String toString() { + return "Reservation(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", reservationStatus=" + this.getReservationStatus() + ", sid=" + this.getSid() + ", taskSid=" + this.getTaskSid() + ", workerName=" + this.getWorkerName() + ", workerSid=" + this.getWorkerSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { PENDING("pending"), ACCEPTED("accepted"), REJECTED("rejected"), @@ -422,4 +417,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueCumulativeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueCumulativeStatistics.java index df4565dab4..c79b85650b 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueCumulativeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueCumulativeStatistics.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskQueueCumulativeStatistics extends Resource { private static final long serialVersionUID = 205432946594841L; @@ -453,4 +443,9 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "TaskQueueCumulativeStatistics(accountSid=" + this.getAccountSid() + ", avgTaskAcceptanceTime=" + this.getAvgTaskAcceptanceTime() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", reservationsCreated=" + this.getReservationsCreated() + ", reservationsAccepted=" + this.getReservationsAccepted() + ", reservationsRejected=" + this.getReservationsRejected() + ", reservationsTimedOut=" + this.getReservationsTimedOut() + ", reservationsCanceled=" + this.getReservationsCanceled() + ", reservationsRescinded=" + this.getReservationsRescinded() + ", splitByWaitTime=" + this.getSplitByWaitTime() + ", taskQueueSid=" + this.getTaskQueueSid() + ", waitDurationUntilAccepted=" + this.getWaitDurationUntilAccepted() + ", waitDurationUntilCanceled=" + this.getWaitDurationUntilCanceled() + ", waitDurationInQueueUntilAccepted=" + this.getWaitDurationInQueueUntilAccepted() + ", tasksCanceled=" + this.getTasksCanceled() + ", tasksCompleted=" + this.getTasksCompleted() + + ", tasksDeleted=" + this.getTasksDeleted() + ", tasksEntered=" + this.getTasksEntered() + ", tasksMoved=" + this.getTasksMoved() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueRealTimeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueRealTimeStatistics.java index 4029070097..08a7606daf 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueRealTimeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueRealTimeStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskQueueRealTimeStatistics extends Resource { private static final long serialVersionUID = 241342137056087L; @@ -321,4 +311,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "TaskQueueRealTimeStatistics(accountSid=" + this.getAccountSid() + ", activityStatistics=" + this.getActivityStatistics() + ", longestTaskWaitingAge=" + this.getLongestTaskWaitingAge() + ", longestTaskWaitingSid=" + this.getLongestTaskWaitingSid() + ", longestRelativeTaskAgeInQueue=" + this.getLongestRelativeTaskAgeInQueue() + ", longestRelativeTaskSidInQueue=" + this.getLongestRelativeTaskSidInQueue() + ", taskQueueSid=" + this.getTaskQueueSid() + ", tasksByPriority=" + this.getTasksByPriority() + ", tasksByStatus=" + this.getTasksByStatus() + ", totalAvailableWorkers=" + this.getTotalAvailableWorkers() + ", totalEligibleWorkers=" + this.getTotalEligibleWorkers() + ", totalTasks=" + this.getTotalTasks() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueStatistics.java index 0108440003..289abfcf20 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueueStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskQueueStatistics extends Resource { private static final long serialVersionUID = 25740453860502L; @@ -198,4 +188,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "TaskQueueStatistics(accountSid=" + this.getAccountSid() + ", cumulative=" + this.getCumulative() + ", realtime=" + this.getRealtime() + ", taskQueueSid=" + this.getTaskQueueSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueuesStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueuesStatistics.java index 5fcc1d0063..c2f1e50af1 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueuesStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/taskqueue/TaskQueuesStatistics.java @@ -14,24 +14,14 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskQueuesStatistics extends Resource { private static final long serialVersionUID = 212191647411252L; @@ -179,4 +169,8 @@ public int hashCode() { taskQueueSid, workspaceSid); } -} \ No newline at end of file + + public String toString() { + return "TaskQueuesStatistics(accountSid=" + this.getAccountSid() + ", cumulative=" + this.getCumulative() + ", realtime=" + this.getRealtime() + ", taskQueueSid=" + this.getTaskQueueSid() + ", workspaceSid=" + this.getWorkspaceSid() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java index 166a9592e5..7e1249bd47 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Reservation extends Resource { private static final long serialVersionUID = 63448280807644L; - public enum Status { + public String toString() { + return "Reservation(accountSid=" + this.getAccountSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", reservationStatus=" + this.getReservationStatus() + ", sid=" + this.getSid() + ", taskSid=" + this.getTaskSid() + ", workerName=" + this.getWorkerName() + ", workerSid=" + this.getWorkerSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { PENDING("pending"), ACCEPTED("accepted"), REJECTED("rejected"), @@ -396,4 +391,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerChannel.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerChannel.java index bbcf6225af..e29b7c4f78 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerChannel.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerChannel.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkerChannel extends Resource { private static final long serialVersionUID = 181596062682267L; @@ -335,4 +325,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkerChannel(accountSid=" + this.getAccountSid() + ", assignedTasks=" + this.getAssignedTasks() + ", available=" + this.getAvailable() + ", availableCapacityPercentage=" + this.getAvailableCapacityPercentage() + ", configuredCapacity=" + this.getConfiguredCapacity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", sid=" + this.getSid() + ", taskChannelSid=" + this.getTaskChannelSid() + ", taskChannelUniqueName=" + this.getTaskChannelUniqueName() + ", workerSid=" + this.getWorkerSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerStatistics.java index 25d71ba20d..b1feba650c 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkerStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkerStatistics extends Resource { private static final long serialVersionUID = 174560494604680L; @@ -183,4 +173,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkerStatistics(accountSid=" + this.getAccountSid() + ", cumulative=" + this.getCumulative() + ", workerSid=" + this.getWorkerSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersCumulativeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersCumulativeStatistics.java index 7810d8ee05..ee17fb4105 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersCumulativeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersCumulativeStatistics.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,7 +26,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkersCumulativeStatistics extends Resource { private static final long serialVersionUID = 89273605202076L; @@ -293,4 +283,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkersCumulativeStatistics(accountSid=" + this.getAccountSid() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", activityDurations=" + this.getActivityDurations() + ", reservationsCreated=" + this.getReservationsCreated() + ", reservationsAccepted=" + this.getReservationsAccepted() + ", reservationsRejected=" + this.getReservationsRejected() + ", reservationsTimedOut=" + this.getReservationsTimedOut() + ", reservationsCanceled=" + this.getReservationsCanceled() + ", reservationsRescinded=" + this.getReservationsRescinded() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersRealTimeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersRealTimeStatistics.java index df3f1d5e32..2972bb1d3d 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersRealTimeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersRealTimeStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkersRealTimeStatistics extends Resource { private static final long serialVersionUID = 59891376471139L; @@ -181,4 +171,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkersRealTimeStatistics(accountSid=" + this.getAccountSid() + ", activityStatistics=" + this.getActivityStatistics() + ", totalWorkers=" + this.getTotalWorkers() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersStatistics.java index 625e8a7225..995d286d5d 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/WorkersStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkersStatistics extends Resource { private static final long serialVersionUID = 181724864721054L; @@ -180,4 +170,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkersStatistics(realtime=" + this.getRealtime() + ", cumulative=" + this.getCumulative() + ", accountSid=" + this.getAccountSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowCumulativeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowCumulativeStatistics.java index 0d39ab4fd0..b557854408 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowCumulativeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowCumulativeStatistics.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkflowCumulativeStatistics extends Resource { private static final long serialVersionUID = 190316702112429L; @@ -447,4 +437,9 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkflowCumulativeStatistics(accountSid=" + this.getAccountSid() + ", avgTaskAcceptanceTime=" + this.getAvgTaskAcceptanceTime() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", reservationsCreated=" + this.getReservationsCreated() + ", reservationsAccepted=" + this.getReservationsAccepted() + ", reservationsRejected=" + this.getReservationsRejected() + ", reservationsTimedOut=" + this.getReservationsTimedOut() + ", reservationsCanceled=" + this.getReservationsCanceled() + ", reservationsRescinded=" + this.getReservationsRescinded() + ", splitByWaitTime=" + this.getSplitByWaitTime() + ", waitDurationUntilAccepted=" + this.getWaitDurationUntilAccepted() + ", waitDurationUntilCanceled=" + this.getWaitDurationUntilCanceled() + ", tasksCanceled=" + this.getTasksCanceled() + ", tasksCompleted=" + this.getTasksCompleted() + ", tasksEntered=" + this.getTasksEntered() + ", tasksDeleted=" + this.getTasksDeleted() + ", tasksMoved=" + this.getTasksMoved() + + ", tasksTimedOutInWorkflow=" + this.getTasksTimedOutInWorkflow() + ", workflowSid=" + this.getWorkflowSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowRealTimeStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowRealTimeStatistics.java index 17bb564312..2a75147050 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowRealTimeStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowRealTimeStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkflowRealTimeStatistics extends Resource { private static final long serialVersionUID = 195171007786684L; @@ -245,4 +235,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkflowRealTimeStatistics(accountSid=" + this.getAccountSid() + ", longestTaskWaitingAge=" + this.getLongestTaskWaitingAge() + ", longestTaskWaitingSid=" + this.getLongestTaskWaitingSid() + ", tasksByPriority=" + this.getTasksByPriority() + ", tasksByStatus=" + this.getTasksByStatus() + ", totalTasks=" + this.getTotalTasks() + ", workflowSid=" + this.getWorkflowSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowStatistics.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowStatistics.java index f99ee14cef..951fe5797a 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowStatistics.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/workflow/WorkflowStatistics.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -32,7 +23,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkflowStatistics extends Resource { private static final long serialVersionUID = 71533106021042L; @@ -200,4 +190,8 @@ public int hashCode() { workspaceSid, url); } -} \ No newline at end of file + + public String toString() { + return "WorkflowStatistics(accountSid=" + this.getAccountSid() + ", cumulative=" + this.getCumulative() + ", realtime=" + this.getRealtime() + ", workflowSid=" + this.getWorkflowSid() + ", workspaceSid=" + this.getWorkspaceSid() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trunking/v1/Trunk.java b/src/main/java/com/twilio/rest/trunking/v1/Trunk.java index dd56820aed..5892744d7e 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/Trunk.java +++ b/src/main/java/com/twilio/rest/trunking/v1/Trunk.java @@ -14,19 +14,11 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Trunk extends Resource { private static final long serialVersionUID = 110040442840544L; - public enum TransferSetting { + public String toString() { + return "Trunk(accountSid=" + this.getAccountSid() + ", domainName=" + this.getDomainName() + ", disasterRecoveryMethod=" + this.getDisasterRecoveryMethod() + ", disasterRecoveryUrl=" + this.getDisasterRecoveryUrl() + ", friendlyName=" + this.getFriendlyName() + ", secure=" + this.getSecure() + ", recording=" + this.getRecording() + ", transferMode=" + this.getTransferMode() + ", cnamLookupEnabled=" + this.getCnamLookupEnabled() + ", authType=" + this.getAuthType() + ", authTypeSet=" + this.getAuthTypeSet() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", sid=" + this.getSid() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum TransferSetting { DISABLE_ALL("disable-all"), ENABLE_ALL("enable-all"), SIP_ONLY("sip-only"); @@ -416,4 +411,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialList.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialList.java index 4328518e34..d3f269f93c 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialList.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/CredentialList.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CredentialList extends Resource { private static final long serialVersionUID = 45032598628398L; @@ -252,4 +242,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "CredentialList(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", trunkSid=" + this.getTrunkSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlList.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlList.java index 14348d011b..4439bf7b8f 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlList.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/IpAccessControlList.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class IpAccessControlList extends Resource { private static final long serialVersionUID = 45032598628398L; @@ -252,4 +242,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "IpAccessControlList(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", trunkSid=" + this.getTrunkSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrl.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrl.java index 24231dfa11..45ac2341c6 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrl.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/OriginationUrl.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OriginationUrl extends Resource { private static final long serialVersionUID = 147762448771620L; @@ -335,4 +325,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "OriginationUrl(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", trunkSid=" + this.getTrunkSid() + ", weight=" + this.getWeight() + ", enabled=" + this.getEnabled() + ", sipUrl=" + this.getSipUrl() + ", friendlyName=" + this.getFriendlyName() + ", priority=" + this.getPriority() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumber.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumber.java index 0f2f3a534e..2afbb0e5b5 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumber.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/PhoneNumber.java @@ -18,14 +18,7 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +27,15 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PhoneNumber extends Resource { private static final long serialVersionUID = 152136077896645L; - public enum AddressRequirement { + public String toString() { + return "PhoneNumber(accountSid=" + this.getAccountSid() + ", addressRequirements=" + this.getAddressRequirements() + ", apiVersion=" + this.getApiVersion() + ", beta=" + this.getBeta() + ", capabilities=" + this.getCapabilities() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", links=" + this.getLinks() + ", phoneNumber=" + this.getPhoneNumber() + ", sid=" + this.getSid() + ", smsApplicationSid=" + this.getSmsApplicationSid() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", trunkSid=" + this.getTrunkSid() + ", url=" + this.getUrl() + ", voiceApplicationSid=" + this.getVoiceApplicationSid() + ", voiceCallerIdLookup=" + this.getVoiceCallerIdLookup() + + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ")"; + } + + public enum AddressRequirement { NONE("none"), ANY("any"), LOCAL("local"), @@ -570,4 +567,4 @@ public int hashCode() { voiceMethod, voiceUrl); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java index 809a7a811b..94f7bab3ca 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java @@ -17,25 +17,19 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Recording extends Resource { private static final long serialVersionUID = 256465659878704L; - public enum RecordingMode { + public String toString() { + return "Recording(mode=" + this.getMode() + ", trim=" + this.getTrim() + ")"; + } + + public enum RecordingMode { DO_NOT_RECORD("do-not-record"), RECORD_FROM_RINGING("record-from-ringing"), RECORD_FROM_ANSWER("record-from-answer"), @@ -198,4 +192,4 @@ public int hashCode() { return Objects.hash(mode, trim); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfiles.java b/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfiles.java index ce6fa17c9b..6e978a2166 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfiles.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/CustomerProfiles.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CustomerProfiles extends Resource { private static final long serialVersionUID = 173324482464515L; - public enum Status { + public String toString() { + return "CustomerProfiles(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", policySid=" + this.getPolicySid() + ", friendlyName=" + this.getFriendlyName() + ", status=" + this.getStatus() + ", validUntil=" + this.getValidUntil() + ", email=" + this.getEmail() + ", statusCallback=" + this.getStatusCallback() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { DRAFT("draft"), PENDING_REVIEW("pending-review"), IN_REVIEW("in-review"), @@ -385,4 +380,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/EndUser.java b/src/main/java/com/twilio/rest/trusthub/v1/EndUser.java index 1e0c09698c..7982c1d861 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/EndUser.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/EndUser.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class EndUser extends Resource { private static final long serialVersionUID = 159210081112231L; @@ -267,4 +257,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "EndUser(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", type=" + this.getType() + ", attributes=" + this.getAttributes() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/EndUserType.java b/src/main/java/com/twilio/rest/trusthub/v1/EndUserType.java index 0f590cb220..6f783c1d22 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/EndUserType.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/EndUserType.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class EndUserType extends Resource { private static final long serialVersionUID = 122060765056135L; @@ -190,4 +180,8 @@ public int hashCode() { fields, url); } -} \ No newline at end of file + + public String toString() { + return "EndUserType(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", machineName=" + this.getMachineName() + ", fields=" + this.getFields() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/Policies.java b/src/main/java/com/twilio/rest/trusthub/v1/Policies.java index 556cfc3a56..1a36a967f6 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/Policies.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/Policies.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,11 +24,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Policies extends Resource { private static final long serialVersionUID = 88232751562950L; - public enum EndUserType { + public String toString() { + return "Policies(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", requirements=" + this.getRequirements() + ", url=" + this.getUrl() + ")"; + } + + public enum EndUserType { INDIVIDUAL("individual"), BUSINESS("business"); @@ -200,4 +194,4 @@ public int hashCode() { requirements, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocument.java b/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocument.java index 8069767d31..adb54df92a 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocument.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocument.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SupportingDocument extends Resource { private static final long serialVersionUID = 164064096878384L; - public enum Status { + public String toString() { + return "SupportingDocument(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", mimeType=" + this.getMimeType() + ", status=" + this.getStatus() + ", type=" + this.getType() + ", attributes=" + this.getAttributes() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { DRAFT("draft"), PENDING_REVIEW("pending-review"), REJECTED("rejected"), @@ -328,4 +322,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentType.java b/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentType.java index 99e72bbd09..8a4c548020 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentType.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/SupportingDocumentType.java @@ -14,17 +14,8 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SupportingDocumentType extends Resource { private static final long serialVersionUID = 122060765056135L; @@ -196,4 +186,8 @@ public int hashCode() { fields, url); } -} \ No newline at end of file + + public String toString() { + return "SupportingDocumentType(sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", machineName=" + this.getMachineName() + ", fields=" + this.getFields() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/TrustProducts.java b/src/main/java/com/twilio/rest/trusthub/v1/TrustProducts.java index 65c3c9ff5e..74dfdc5bb2 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/TrustProducts.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/TrustProducts.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TrustProducts extends Resource { private static final long serialVersionUID = 192996748953513L; - public enum Status { + public String toString() { + return "TrustProducts(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", policySid=" + this.getPolicySid() + ", friendlyName=" + this.getFriendlyName() + ", status=" + this.getStatus() + ", validUntil=" + this.getValidUntil() + ", email=" + this.getEmail() + ", statusCallback=" + this.getStatusCallback() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { DRAFT("draft"), PENDING_REVIEW("pending-review"), IN_REVIEW("in-review"), @@ -385,4 +380,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignment.java b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignment.java index e82ebd2b42..1bff95770d 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignment.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesChannelEndpointAssignment.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CustomerProfilesChannelEndpointAssignment extends Resource { private static final long serialVersionUID = 104533299645762L; @@ -255,4 +245,8 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file + + public String toString() { + return "CustomerProfilesChannelEndpointAssignment(sid=" + this.getSid() + ", customerProfileSid=" + this.getCustomerProfileSid() + ", accountSid=" + this.getAccountSid() + ", channelEndpointType=" + this.getChannelEndpointType() + ", channelEndpointSid=" + this.getChannelEndpointSid() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignments.java b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignments.java index 519230ed7f..8026bc0819 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignments.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEntityAssignments.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CustomerProfilesEntityAssignments extends Resource { private static final long serialVersionUID = 187073791888646L; @@ -237,4 +227,8 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file + + public String toString() { + return "CustomerProfilesEntityAssignments(sid=" + this.getSid() + ", customerProfileSid=" + this.getCustomerProfileSid() + ", accountSid=" + this.getAccountSid() + ", objectSid=" + this.getObjectSid() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEvaluations.java b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEvaluations.java index b11894c311..19413243eb 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEvaluations.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/customerprofiles/CustomerProfilesEvaluations.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CustomerProfilesEvaluations extends Resource { private static final long serialVersionUID = 95779097489092L; - public enum Status { + public String toString() { + return "CustomerProfilesEvaluations(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", policySid=" + this.getPolicySid() + ", customerProfileSid=" + this.getCustomerProfileSid() + ", status=" + this.getStatus() + ", results=" + this.getResults() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { COMPLIANT("compliant"), NONCOMPLIANT("noncompliant"); @@ -278,4 +272,4 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignment.java b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignment.java index 26f03c9e2f..790555cd55 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignment.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsChannelEndpointAssignment.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TrustProductsChannelEndpointAssignment extends Resource { private static final long serialVersionUID = 50827114270251L; @@ -255,4 +245,8 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file + + public String toString() { + return "TrustProductsChannelEndpointAssignment(sid=" + this.getSid() + ", trustProductSid=" + this.getTrustProductSid() + ", accountSid=" + this.getAccountSid() + ", channelEndpointType=" + this.getChannelEndpointType() + ", channelEndpointSid=" + this.getChannelEndpointSid() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignments.java b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignments.java index 270a5e8977..df12b231b9 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignments.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEntityAssignments.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TrustProductsEntityAssignments extends Resource { private static final long serialVersionUID = 89528565687536L; @@ -234,4 +224,8 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file + + public String toString() { + return "TrustProductsEntityAssignments(sid=" + this.getSid() + ", trustProductSid=" + this.getTrustProductSid() + ", accountSid=" + this.getAccountSid() + ", objectSid=" + this.getObjectSid() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEvaluations.java b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEvaluations.java index 2ee35fae56..afeae393b5 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEvaluations.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/trustproducts/TrustProductsEvaluations.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TrustProductsEvaluations extends Resource { private static final long serialVersionUID = 60147493077422L; - public enum Status { + public String toString() { + return "TrustProductsEvaluations(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", policySid=" + this.getPolicySid() + ", trustProductSid=" + this.getTrustProductSid() + ", status=" + this.getStatus() + ", results=" + this.getResults() + ", dateCreated=" + this.getDateCreated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { COMPLIANT("compliant"), NONCOMPLIANT("noncompliant"); @@ -278,4 +272,4 @@ public int hashCode() { dateCreated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/Form.java b/src/main/java/com/twilio/rest/verify/v2/Form.java index 8032841956..6f481c78dc 100644 --- a/src/main/java/com/twilio/rest/verify/v2/Form.java +++ b/src/main/java/com/twilio/rest/verify/v2/Form.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,11 +28,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Form extends Resource { private static final long serialVersionUID = 262438037114282L; - public enum FormTypes { + public String toString() { + return "Form(formType=" + this.getFormType() + ", forms=" + this.getForms() + ", formMeta=" + this.getFormMeta() + ", url=" + this.getUrl() + ")"; + } + + public enum FormTypes { FORM_PUSH("form-push"); private final String value; @@ -193,4 +187,4 @@ public int hashCode() { formMeta, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/Service.java b/src/main/java/com/twilio/rest/verify/v2/Service.java index 14b2f57b42..e25160c99f 100644 --- a/src/main/java/com/twilio/rest/verify/v2/Service.java +++ b/src/main/java/com/twilio/rest/verify/v2/Service.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Service extends Resource { private static final long serialVersionUID = 220055685211395L; @@ -406,4 +396,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Service(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", codeLength=" + this.getCodeLength() + ", lookupEnabled=" + this.getLookupEnabled() + ", psd2Enabled=" + this.getPsd2Enabled() + ", skipSmsToLandlines=" + this.getSkipSmsToLandlines() + ", dtmfInputRequired=" + this.getDtmfInputRequired() + ", ttsName=" + this.getTtsName() + ", doNotShareWarningEnabled=" + this.getDoNotShareWarningEnabled() + ", customCodeEnabled=" + this.getCustomCodeEnabled() + ", push=" + this.getPush() + ", totp=" + this.getTotp() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java b/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java index 0f9266bdea..71677db176 100644 --- a/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java +++ b/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class VerificationAttempt extends Resource { private static final long serialVersionUID = 105153290434346L; - public enum Channels { + public String toString() { + return "VerificationAttempt(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", conversionStatus=" + this.getConversionStatus() + ", channel=" + this.getChannel() + ", channelData=" + this.getChannelData() + ", url=" + this.getUrl() + ")"; + } + + public enum Channels { SMS("sms"), CALL("call"), EMAIL("email"); @@ -303,4 +297,4 @@ public int hashCode() { channelData, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/VerificationTemplate.java b/src/main/java/com/twilio/rest/verify/v2/VerificationTemplate.java index 37e185f3ac..c96d53c565 100644 --- a/src/main/java/com/twilio/rest/verify/v2/VerificationTemplate.java +++ b/src/main/java/com/twilio/rest/verify/v2/VerificationTemplate.java @@ -14,24 +14,14 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class VerificationTemplate extends Resource { private static final long serialVersionUID = 55612496215958L; @@ -163,4 +153,8 @@ public int hashCode() { friendlyName, translations); } -} \ No newline at end of file + + public String toString() { + return "VerificationTemplate(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", translations=" + this.getTranslations() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/AccessToken.java b/src/main/java/com/twilio/rest/verify/v2/service/AccessToken.java index b74a9bf2d2..d576a224ad 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/AccessToken.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/AccessToken.java @@ -17,17 +17,8 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; /** @@ -35,10 +26,13 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class AccessToken extends Resource { private static final long serialVersionUID = 123884033173693L; + public String toString() { + return "AccessToken(token=" + this.getToken() + ")"; + } + public enum FactorTypes { PUSH("push"); @@ -151,4 +145,4 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(token); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/Entity.java b/src/main/java/com/twilio/rest/verify/v2/service/Entity.java index 92e9a2646a..103d8fab0e 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/Entity.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/Entity.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Entity extends Resource { private static final long serialVersionUID = 16297251253048L; @@ -265,4 +256,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Entity(sid=" + this.getSid() + ", identity=" + this.getIdentity() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfiguration.java b/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfiguration.java index bb864313f9..9df3b0aa2f 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfiguration.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/MessagingConfiguration.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class MessagingConfiguration extends Resource { private static final long serialVersionUID = 147387662050188L; @@ -270,4 +260,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "MessagingConfiguration(accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", country=" + this.getCountry() + ", messagingServiceSid=" + this.getMessagingServiceSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/RateLimit.java b/src/main/java/com/twilio/rest/verify/v2/service/RateLimit.java index 6251a48804..ad785719c3 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/RateLimit.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/RateLimit.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RateLimit extends Resource { private static final long serialVersionUID = 110366061579267L; @@ -294,4 +285,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "RateLimit(sid=" + this.getSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", uniqueName=" + this.getUniqueName() + ", description=" + this.getDescription() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/Verification.java b/src/main/java/com/twilio/rest/verify/v2/service/Verification.java index 047e678e9c..fe3bccbad5 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/Verification.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/Verification.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Verification extends Resource { private static final long serialVersionUID = 216517595769072L; - public enum Channel { + public String toString() { + return "Verification(sid=" + this.getSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", to=" + this.getTo() + ", channel=" + this.getChannel() + ", status=" + this.getStatus() + ", valid=" + this.getValid() + ", lookup=" + this.getLookup() + ", amount=" + this.getAmount() + ", payee=" + this.getPayee() + ", sendCodeAttempts=" + this.getSendCodeAttempts() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Channel { SMS("sms"), CALL("call"), EMAIL("email"), @@ -404,4 +398,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/VerificationCheck.java b/src/main/java/com/twilio/rest/verify/v2/service/VerificationCheck.java index f3d0cf534e..edd05b1b8a 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/VerificationCheck.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/VerificationCheck.java @@ -18,26 +18,20 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class VerificationCheck extends Resource { private static final long serialVersionUID = 185560198235176L; - public enum Channel { + public String toString() { + return "VerificationCheck(sid=" + this.getSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", to=" + this.getTo() + ", channel=" + this.getChannel() + ", status=" + this.getStatus() + ", valid=" + this.getValid() + ", amount=" + this.getAmount() + ", payee=" + this.getPayee() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } + + public enum Channel { SMS("sms"), CALL("call"), EMAIL("email"), @@ -305,4 +299,4 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java b/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java index dd30e53567..6236b027e5 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java @@ -18,20 +18,11 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; /** @@ -39,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Webhook extends Resource { private static final long serialVersionUID = 188296693702794L; - public enum Status { + public String toString() { + return "Webhook(sid=" + this.getSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", eventTypes=" + this.getEventTypes() + ", status=" + this.getStatus() + ", version=" + this.getVersion() + ", webhookUrl=" + this.getWebhookUrl() + ", webhookMethod=" + this.getWebhookMethod() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Status { ENABLED("enabled"), DISABLED("disabled"); @@ -418,4 +412,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java index db3fd46dc5..67e14d1e48 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java @@ -14,24 +14,14 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.List; import java.util.Map; import java.util.Objects; @@ -40,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Challenge extends Resource { private static final long serialVersionUID = 27558061836839L; - public enum ChallengeStatuses { + public String toString() { + return "Challenge(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", entitySid=" + this.getEntitySid() + ", identity=" + this.getIdentity() + ", factorSid=" + this.getFactorSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", dateResponded=" + this.getDateResponded() + ", expirationDate=" + this.getExpirationDate() + ", status=" + this.getStatus() + ", respondedReason=" + this.getRespondedReason() + ", details=" + this.getDetails() + ", hiddenDetails=" + this.getHiddenDetails() + ", factorType=" + this.getFactorType() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum ChallengeStatuses { PENDING("pending"), EXPIRED("expired"), APPROVED("approved"), @@ -515,4 +508,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java index 0dbfbd7aac..d8dd041c92 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/Factor.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Factor extends Resource { private static final long serialVersionUID = 201328569010526L; - public enum FactorStatuses { + public String toString() { + return "Factor(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", entitySid=" + this.getEntitySid() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", status=" + this.getStatus() + ", factorType=" + this.getFactorType() + ", config=" + this.getConfig() + ", url=" + this.getUrl() + ")"; + } + + public enum FactorStatuses { UNVERIFIED("unverified"), VERIFIED("verified"); @@ -436,4 +430,4 @@ public int hashCode() { config, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java index f7c9370520..3dcab1ce47 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -39,11 +30,14 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class NewFactor extends Resource { private static final long serialVersionUID = 213031822004713L; - public enum FactorStatuses { + public String toString() { + return "NewFactor(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", entitySid=" + this.getEntitySid() + ", identity=" + this.getIdentity() + ", binding=" + this.getBinding() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", friendlyName=" + this.getFriendlyName() + ", status=" + this.getStatus() + ", factorType=" + this.getFactorType() + ", config=" + this.getConfig() + ", url=" + this.getUrl() + ")"; + } + + public enum FactorStatuses { UNVERIFIED("unverified"), VERIFIED("verified"); @@ -414,4 +408,4 @@ public int hashCode() { config, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/challenge/Notification.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/challenge/Notification.java index 2877d3817f..d8bda607e0 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/challenge/Notification.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/challenge/Notification.java @@ -17,18 +17,9 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * change. Use them with caution. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Notification extends Resource { private static final long serialVersionUID = 58087406399871L; @@ -248,4 +238,8 @@ public int hashCode() { ttl, dateCreated); } -} \ No newline at end of file + + public String toString() { + return "Notification(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", serviceSid=" + this.getServiceSid() + ", entitySid=" + this.getEntitySid() + ", identity=" + this.getIdentity() + ", challengeSid=" + this.getChallengeSid() + ", priority=" + this.getPriority() + ", ttl=" + this.getTtl() + ", dateCreated=" + this.getDateCreated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/Bucket.java b/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/Bucket.java index 8ef1ee36c2..35f36c1cad 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/Bucket.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/ratelimit/Bucket.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Bucket extends Resource { private static final long serialVersionUID = 11459173991897L; @@ -305,4 +295,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "Bucket(sid=" + this.getSid() + ", rateLimitSid=" + this.getRateLimitSid() + ", serviceSid=" + this.getServiceSid() + ", accountSid=" + this.getAccountSid() + ", max=" + this.getMax() + ", interval=" + this.getInterval() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/video/v1/Composition.java b/src/main/java/com/twilio/rest/video/v1/Composition.java index 7fefc1a13b..08006e4d9a 100644 --- a/src/main/java/com/twilio/rest/video/v1/Composition.java +++ b/src/main/java/com/twilio/rest/video/v1/Composition.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +27,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Composition extends Resource { private static final long serialVersionUID = 61658716109908L; - public enum Status { + public String toString() { + return "Composition(accountSid=" + this.getAccountSid() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", dateCompleted=" + this.getDateCompleted() + ", dateDeleted=" + this.getDateDeleted() + ", sid=" + this.getSid() + ", roomSid=" + this.getRoomSid() + ", audioSources=" + this.getAudioSources() + ", audioSourcesExcluded=" + this.getAudioSourcesExcluded() + ", videoLayout=" + this.getVideoLayout() + ", resolution=" + this.getResolution() + ", trim=" + this.getTrim() + ", format=" + this.getFormat() + ", bitrate=" + this.getBitrate() + ", size=" + this.getSize() + ", duration=" + this.getDuration() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { ENQUEUED("enqueued"), PROCESSING("processing"), COMPLETED("completed"), @@ -470,4 +464,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/CompositionHook.java b/src/main/java/com/twilio/rest/video/v1/CompositionHook.java index bdc535b6cd..d725ab2f58 100644 --- a/src/main/java/com/twilio/rest/video/v1/CompositionHook.java +++ b/src/main/java/com/twilio/rest/video/v1/CompositionHook.java @@ -14,19 +14,11 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -36,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CompositionHook extends Resource { private static final long serialVersionUID = 281311376768009L; - public enum Format { + public String toString() { + return "CompositionHook(accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", enabled=" + this.getEnabled() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", sid=" + this.getSid() + ", audioSources=" + this.getAudioSources() + ", audioSourcesExcluded=" + this.getAudioSourcesExcluded() + ", videoLayout=" + this.getVideoLayout() + ", resolution=" + this.getResolution() + ", trim=" + this.getTrim() + ", format=" + this.getFormat() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", url=" + this.getUrl() + ")"; + } + + public enum Format { MP4("mp4"), WEBM("webm"); @@ -408,4 +403,4 @@ public int hashCode() { statusCallbackMethod, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/CompositionSettings.java b/src/main/java/com/twilio/rest/video/v1/CompositionSettings.java index 3e752c400f..9a7b69c87b 100644 --- a/src/main/java/com/twilio/rest/video/v1/CompositionSettings.java +++ b/src/main/java/com/twilio/rest/video/v1/CompositionSettings.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class CompositionSettings extends Resource { private static final long serialVersionUID = 41622584466212L; @@ -234,4 +224,8 @@ public int hashCode() { encryptionEnabled, url); } -} \ No newline at end of file + + public String toString() { + return "CompositionSettings(accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", awsCredentialsSid=" + this.getAwsCredentialsSid() + ", awsS3Url=" + this.getAwsS3Url() + ", awsStorageEnabled=" + this.getAwsStorageEnabled() + ", encryptionKeySid=" + this.getEncryptionKeySid() + ", encryptionEnabled=" + this.getEncryptionEnabled() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/video/v1/Recording.java b/src/main/java/com/twilio/rest/video/v1/Recording.java index bd8dbc84d6..21be430db8 100644 --- a/src/main/java/com/twilio/rest/video/v1/Recording.java +++ b/src/main/java/com/twilio/rest/video/v1/Recording.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Recording extends Resource { private static final long serialVersionUID = 75716728838736L; - public enum Status { + public String toString() { + return "Recording(accountSid=" + this.getAccountSid() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", sid=" + this.getSid() + ", sourceSid=" + this.getSourceSid() + ", size=" + this.getSize() + ", url=" + this.getUrl() + ", type=" + this.getType() + ", duration=" + this.getDuration() + ", containerFormat=" + this.getContainerFormat() + ", codec=" + this.getCodec() + ", groupingSids=" + this.getGroupingSids() + ", trackName=" + this.getTrackName() + ", offset=" + this.getOffset() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { PROCESSING("processing"), COMPLETED("completed"), DELETED("deleted"), @@ -460,4 +454,4 @@ public int hashCode() { offset, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/RecordingSettings.java b/src/main/java/com/twilio/rest/video/v1/RecordingSettings.java index db7f3cabb3..31631d5a8b 100644 --- a/src/main/java/com/twilio/rest/video/v1/RecordingSettings.java +++ b/src/main/java/com/twilio/rest/video/v1/RecordingSettings.java @@ -16,22 +16,12 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RecordingSettings extends Resource { private static final long serialVersionUID = 41622584466212L; @@ -233,4 +223,8 @@ public int hashCode() { encryptionEnabled, url); } -} \ No newline at end of file + + public String toString() { + return "RecordingSettings(accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", awsCredentialsSid=" + this.getAwsCredentialsSid() + ", awsS3Url=" + this.getAwsS3Url() + ", awsStorageEnabled=" + this.getAwsStorageEnabled() + ", encryptionKeySid=" + this.getEncryptionKeySid() + ", encryptionEnabled=" + this.getEncryptionEnabled() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/video/v1/Room.java b/src/main/java/com/twilio/rest/video/v1/Room.java index 2db49b7163..6ae274a059 100644 --- a/src/main/java/com/twilio/rest/video/v1/Room.java +++ b/src/main/java/com/twilio/rest/video/v1/Room.java @@ -18,14 +18,7 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +28,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Room extends Resource { private static final long serialVersionUID = 155845282259385L; - public enum RoomStatus { + public String toString() { + return "Room(sid=" + this.getSid() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", accountSid=" + this.getAccountSid() + ", enableTurn=" + this.getEnableTurn() + ", uniqueName=" + this.getUniqueName() + ", statusCallback=" + this.getStatusCallback() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", endTime=" + this.getEndTime() + ", duration=" + this.getDuration() + ", type=" + this.getType() + ", maxParticipants=" + this.getMaxParticipants() + ", maxConcurrentPublishedTracks=" + this.getMaxConcurrentPublishedTracks() + ", recordParticipantsOnConnect=" + this.getRecordParticipantsOnConnect() + ", videoCodecs=" + this.getVideoCodecs() + ", mediaRegion=" + this.getMediaRegion() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum RoomStatus { IN_PROGRESS("in-progress"), COMPLETED("completed"), FAILED("failed"); @@ -504,4 +500,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/room/Participant.java b/src/main/java/com/twilio/rest/video/v1/room/Participant.java index 93184fce18..bde329cb49 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/Participant.java +++ b/src/main/java/com/twilio/rest/video/v1/room/Participant.java @@ -18,14 +18,6 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Participant extends Resource { private static final long serialVersionUID = 34001242407544L; - public enum Status { + public String toString() { + return "Participant(sid=" + this.getSid() + ", roomSid=" + this.getRoomSid() + ", accountSid=" + this.getAccountSid() + ", status=" + this.getStatus() + ", identity=" + this.getIdentity() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", duration=" + this.getDuration() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { CONNECTED("connected"), DISCONNECTED("disconnected"); @@ -338,4 +333,4 @@ public int hashCode() { url, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/room/RecordingRules.java b/src/main/java/com/twilio/rest/video/v1/room/RecordingRules.java index cd4cf027db..3f3e1bbf03 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/RecordingRules.java +++ b/src/main/java/com/twilio/rest/video/v1/room/RecordingRules.java @@ -17,24 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.RecordingRule; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RecordingRules extends Resource { private static final long serialVersionUID = 132882728526196L; @@ -181,4 +171,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "RecordingRules(roomSid=" + this.getRoomSid() + ", rules=" + this.getRules() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java b/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java index e3128e270e..781eefd174 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java +++ b/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java @@ -14,19 +14,10 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -35,11 +26,14 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RoomRecording extends Resource { private static final long serialVersionUID = 32348280451006L; - public enum Status { + public String toString() { + return "RoomRecording(accountSid=" + this.getAccountSid() + ", status=" + this.getStatus() + ", dateCreated=" + this.getDateCreated() + ", sid=" + this.getSid() + ", sourceSid=" + this.getSourceSid() + ", size=" + this.getSize() + ", url=" + this.getUrl() + ", type=" + this.getType() + ", duration=" + this.getDuration() + ", containerFormat=" + this.getContainerFormat() + ", codec=" + this.getCodec() + ", groupingSids=" + this.getGroupingSids() + ", trackName=" + this.getTrackName() + ", offset=" + this.getOffset() + ", roomSid=" + this.getRoomSid() + ", links=" + this.getLinks() + ")"; + } + + public enum Status { PROCESSING("processing"), COMPLETED("completed"), DELETED("deleted"), @@ -482,4 +476,4 @@ public int hashCode() { roomSid, links); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/room/participant/PublishedTrack.java b/src/main/java/com/twilio/rest/video/v1/room/participant/PublishedTrack.java index 7ecbd08b49..205cb4361c 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/participant/PublishedTrack.java +++ b/src/main/java/com/twilio/rest/video/v1/room/participant/PublishedTrack.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PublishedTrack extends Resource { private static final long serialVersionUID = 4379513694924L; - public enum Kind { + public String toString() { + return "PublishedTrack(sid=" + this.getSid() + ", participantSid=" + this.getParticipantSid() + ", roomSid=" + this.getRoomSid() + ", name=" + this.getName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", enabled=" + this.getEnabled() + ", kind=" + this.getKind() + ", url=" + this.getUrl() + ")"; + } + + public enum Kind { AUDIO("audio"), VIDEO("video"), DATA("data"); @@ -288,4 +282,4 @@ public int hashCode() { kind, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribeRules.java b/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribeRules.java index ecfede3f1b..86406c5527 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribeRules.java +++ b/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribeRules.java @@ -17,24 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; import com.twilio.type.SubscribeRule; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SubscribeRules extends Resource { private static final long serialVersionUID = 98678820953889L; @@ -202,4 +192,8 @@ public int hashCode() { dateCreated, dateUpdated); } -} \ No newline at end of file + + public String toString() { + return "SubscribeRules(participantSid=" + this.getParticipantSid() + ", roomSid=" + this.getRoomSid() + ", rules=" + this.getRules() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribedTrack.java b/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribedTrack.java index 05af13de8c..58d6f1080d 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribedTrack.java +++ b/src/main/java/com/twilio/rest/video/v1/room/participant/SubscribedTrack.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SubscribedTrack extends Resource { private static final long serialVersionUID = 63596798347062L; - public enum Kind { + public String toString() { + return "SubscribedTrack(sid=" + this.getSid() + ", participantSid=" + this.getParticipantSid() + ", publisherSid=" + this.getPublisherSid() + ", roomSid=" + this.getRoomSid() + ", name=" + this.getName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", enabled=" + this.getEnabled() + ", kind=" + this.getKind() + ", url=" + this.getUrl() + ")"; + } + + public enum Kind { AUDIO("audio"), VIDEO("video"), DATA("data"); @@ -303,4 +297,4 @@ public int hashCode() { kind, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/voice/v1/ByocTrunk.java b/src/main/java/com/twilio/rest/voice/v1/ByocTrunk.java index 073fa28706..f7bc9a4a10 100644 --- a/src/main/java/com/twilio/rest/voice/v1/ByocTrunk.java +++ b/src/main/java/com/twilio/rest/voice/v1/ByocTrunk.java @@ -17,23 +17,14 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ByocTrunk extends Resource { private static final long serialVersionUID = 155966179208903L; @@ -371,4 +362,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "ByocTrunk(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", voiceUrl=" + this.getVoiceUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", statusCallbackUrl=" + this.getStatusCallbackUrl() + ", statusCallbackMethod=" + this.getStatusCallbackMethod() + ", cnamLookupEnabled=" + this.getCnamLookupEnabled() + ", connectionPolicySid=" + this.getConnectionPolicySid() + ", fromDomainSid=" + this.getFromDomainSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicy.java b/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicy.java index 24f55a5e9f..7cbfc88b9f 100644 --- a/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicy.java +++ b/src/main/java/com/twilio/rest/voice/v1/ConnectionPolicy.java @@ -17,14 +17,6 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -33,7 +25,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ConnectionPolicy extends Resource { private static final long serialVersionUID = 84226976776172L; @@ -249,4 +240,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "ConnectionPolicy(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/IpRecord.java b/src/main/java/com/twilio/rest/voice/v1/IpRecord.java index 1b65a0fdcf..b3eedeb424 100644 --- a/src/main/java/com/twilio/rest/voice/v1/IpRecord.java +++ b/src/main/java/com/twilio/rest/voice/v1/IpRecord.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class IpRecord extends Resource { private static final long serialVersionUID = 74904859917733L; @@ -271,4 +261,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "IpRecord(accountSid=" + this.getAccountSid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", ipAddress=" + this.getIpAddress() + ", cidrPrefixLength=" + this.getCidrPrefixLength() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/SourceIpMapping.java b/src/main/java/com/twilio/rest/voice/v1/SourceIpMapping.java index 6aa34b8492..82bfa04952 100644 --- a/src/main/java/com/twilio/rest/voice/v1/SourceIpMapping.java +++ b/src/main/java/com/twilio/rest/voice/v1/SourceIpMapping.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SourceIpMapping extends Resource { private static final long serialVersionUID = 88517684058866L; @@ -239,4 +229,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "SourceIpMapping(sid=" + this.getSid() + ", ipRecordSid=" + this.getIpRecordSid() + ", sipDomainSid=" + this.getSipDomainSid() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTarget.java b/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTarget.java index 9f11a31d1c..c5ecd7a19c 100644 --- a/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTarget.java +++ b/src/main/java/com/twilio/rest/voice/v1/connectionpolicy/ConnectionPolicyTarget.java @@ -17,23 +17,13 @@ import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class ConnectionPolicyTarget extends Resource { private static final long serialVersionUID = 215374980582138L; @@ -326,4 +316,8 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file + + public String toString() { + return "ConnectionPolicyTarget(accountSid=" + this.getAccountSid() + ", connectionPolicySid=" + this.getConnectionPolicySid() + ", sid=" + this.getSid() + ", friendlyName=" + this.getFriendlyName() + ", target=" + this.getTarget() + ", priority=" + this.getPriority() + ", weight=" + this.getWeight() + ", enabled=" + this.getEnabled() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/BulkCountryUpdate.java b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/BulkCountryUpdate.java index 18014e0ac3..07d0709ea0 100644 --- a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/BulkCountryUpdate.java +++ b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/BulkCountryUpdate.java @@ -16,17 +16,8 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; /** @@ -35,7 +26,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class BulkCountryUpdate extends Resource { private static final long serialVersionUID = 82168182663718L; @@ -138,4 +128,8 @@ public int hashCode() { return Objects.hash(updateCount, updateRequest); } -} \ No newline at end of file + + public String toString() { + return "BulkCountryUpdate(updateCount=" + this.getUpdateCount() + ", updateRequest=" + this.getUpdateRequest() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Country.java b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Country.java index c8c8beee35..09eb18993f 100644 --- a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Country.java +++ b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Country.java @@ -16,14 +16,6 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -37,7 +29,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Country extends Resource { private static final long serialVersionUID = 83622253964242L; @@ -255,4 +246,8 @@ public int hashCode() { url, links); } -} \ No newline at end of file + + public String toString() { + return "Country(isoCode=" + this.getIsoCode() + ", name=" + this.getName() + ", continent=" + this.getContinent() + ", countryCodes=" + this.getCountryCodes() + ", lowRiskNumbersEnabled=" + this.getLowRiskNumbersEnabled() + ", highRiskSpecialNumbersEnabled=" + this.getHighRiskSpecialNumbersEnabled() + ", highRiskTollfraudNumbersEnabled=" + this.getHighRiskTollfraudNumbersEnabled() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Settings.java b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Settings.java index 59a2d856a9..d5d63cd2df 100644 --- a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Settings.java +++ b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/Settings.java @@ -16,18 +16,9 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; -import java.util.Map; import java.util.Objects; /** @@ -36,7 +27,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Settings extends Resource { private static final long serialVersionUID = 187417080450761L; @@ -149,4 +139,8 @@ public int hashCode() { return Objects.hash(dialingPermissionsInheritance, url); } -} \ No newline at end of file + + public String toString() { + return "Settings(dialingPermissionsInheritance=" + this.getDialingPermissionsInheritance() + ", url=" + this.getUrl() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/country/HighriskSpecialPrefix.java b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/country/HighriskSpecialPrefix.java index 030a79b215..be417488fd 100644 --- a/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/country/HighriskSpecialPrefix.java +++ b/src/main/java/com/twilio/rest/voice/v1/dialingpermissions/country/HighriskSpecialPrefix.java @@ -16,17 +16,8 @@ import com.twilio.base.Resource; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; -import java.util.Map; import java.util.Objects; /** @@ -35,7 +26,6 @@ * access, please contact help@twilio.com. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class HighriskSpecialPrefix extends Resource { private static final long serialVersionUID = 211324910415647L; @@ -123,4 +113,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(prefix); } -} \ No newline at end of file + + public String toString() { + return "HighriskSpecialPrefix(prefix=" + this.getPrefix() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/wireless/v1/Command.java b/src/main/java/com/twilio/rest/wireless/v1/Command.java index bcae55461a..bec59c68ba 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/Command.java +++ b/src/main/java/com/twilio/rest/wireless/v1/Command.java @@ -18,27 +18,21 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Command extends Resource { private static final long serialVersionUID = 13823495312115L; - public enum Direction { + public String toString() { + return "Command(sid=" + this.getSid() + ", accountSid=" + this.getAccountSid() + ", simSid=" + this.getSimSid() + ", command=" + this.getCommand() + ", commandMode=" + this.getCommandMode() + ", transport=" + this.getTransport() + ", deliveryReceiptRequested=" + this.getDeliveryReceiptRequested() + ", status=" + this.getStatus() + ", direction=" + this.getDirection() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum Direction { FROM_SIM("from_sim"), TO_SIM("to_sim"); @@ -421,4 +415,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java b/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java index 9e6326490a..72df1e3a98 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java +++ b/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java @@ -18,28 +18,22 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.time.ZonedDateTime; import java.util.List; -import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RatePlan extends Resource { private static final long serialVersionUID = 112752591577872L; - public enum DataLimitStrategy { + public String toString() { + return "RatePlan(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", friendlyName=" + this.getFriendlyName() + ", dataEnabled=" + this.getDataEnabled() + ", dataMetering=" + this.getDataMetering() + ", dataLimit=" + this.getDataLimit() + ", messagingEnabled=" + this.getMessagingEnabled() + ", voiceEnabled=" + this.getVoiceEnabled() + ", nationalRoamingEnabled=" + this.getNationalRoamingEnabled() + ", nationalRoamingDataLimit=" + this.getNationalRoamingDataLimit() + ", internationalRoaming=" + this.getInternationalRoaming() + ", internationalRoamingDataLimit=" + this.getInternationalRoamingDataLimit() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ")"; + } + + public enum DataLimitStrategy { BLOCK("block"), THROTTLE("throttle"); @@ -426,4 +420,4 @@ public int hashCode() { dateUpdated, url); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/wireless/v1/Sim.java b/src/main/java/com/twilio/rest/wireless/v1/Sim.java index 5770ea450f..cb6b33a3a2 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/Sim.java +++ b/src/main/java/com/twilio/rest/wireless/v1/Sim.java @@ -18,14 +18,7 @@ import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -34,11 +27,15 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Sim extends Resource { private static final long serialVersionUID = 225971057340770L; - public enum Status { + public String toString() { + return "Sim(sid=" + this.getSid() + ", uniqueName=" + this.getUniqueName() + ", accountSid=" + this.getAccountSid() + ", ratePlanSid=" + this.getRatePlanSid() + ", friendlyName=" + this.getFriendlyName() + ", iccid=" + this.getIccid() + ", eId=" + this.getEId() + ", status=" + this.getStatus() + ", resetStatus=" + this.getResetStatus() + ", commandsCallbackUrl=" + this.getCommandsCallbackUrl() + ", commandsCallbackMethod=" + this.getCommandsCallbackMethod() + ", smsFallbackMethod=" + this.getSmsFallbackMethod() + ", smsFallbackUrl=" + this.getSmsFallbackUrl() + ", smsMethod=" + this.getSmsMethod() + ", smsUrl=" + this.getSmsUrl() + ", voiceFallbackMethod=" + this.getVoiceFallbackMethod() + ", voiceFallbackUrl=" + this.getVoiceFallbackUrl() + ", voiceMethod=" + this.getVoiceMethod() + ", voiceUrl=" + this.getVoiceUrl() + ", dateCreated=" + this.getDateCreated() + ", dateUpdated=" + this.getDateUpdated() + ", url=" + this.getUrl() + ", links=" + this.getLinks() + ", ipAddress=" + + this.getIpAddress() + ")"; + } + + public enum Status { NEW("new"), READY("ready"), ACTIVE("active"), @@ -560,4 +557,4 @@ public int hashCode() { links, ipAddress); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/wireless/v1/UsageRecord.java b/src/main/java/com/twilio/rest/wireless/v1/UsageRecord.java index 941f096fe7..99179a84a3 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/UsageRecord.java +++ b/src/main/java/com/twilio/rest/wireless/v1/UsageRecord.java @@ -14,29 +14,23 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UsageRecord extends Resource { private static final long serialVersionUID = 225669332725872L; - public enum Granularity { + public String toString() { + return "UsageRecord(accountSid=" + this.getAccountSid() + ", period=" + this.getPeriod() + ", commands=" + this.getCommands() + ", data=" + this.getData() + ")"; + } + + public enum Granularity { HOURLY("hourly"), DAILY("daily"), ALL("all"); @@ -194,4 +188,4 @@ public int hashCode() { commands, data); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/rest/wireless/v1/sim/DataSession.java b/src/main/java/com/twilio/rest/wireless/v1/sim/DataSession.java index 039fe03a3a..ed534cfcb7 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/sim/DataSession.java +++ b/src/main/java/com/twilio/rest/wireless/v1/sim/DataSession.java @@ -14,18 +14,9 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.DateConverter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.time.ZonedDateTime; @@ -33,7 +24,6 @@ import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class DataSession extends Resource { private static final long serialVersionUID = 281325626490598L; @@ -366,4 +356,8 @@ public int hashCode() { end, imei); } -} \ No newline at end of file + + public String toString() { + return "DataSession(sid=" + this.getSid() + ", simSid=" + this.getSimSid() + ", accountSid=" + this.getAccountSid() + ", radioLink=" + this.getRadioLink() + ", operatorMcc=" + this.getOperatorMcc() + ", operatorMnc=" + this.getOperatorMnc() + ", operatorCountry=" + this.getOperatorCountry() + ", operatorName=" + this.getOperatorName() + ", cellId=" + this.getCellId() + ", cellLocationEstimate=" + this.getCellLocationEstimate() + ", packetsUploaded=" + this.getPacketsUploaded() + ", packetsDownloaded=" + this.getPacketsDownloaded() + ", lastUpdated=" + this.getLastUpdated() + ", start=" + this.getStart() + ", end=" + this.getEnd() + ", imei=" + this.getImei() + ")"; + } +} diff --git a/src/main/java/com/twilio/rest/wireless/v1/sim/UsageRecord.java b/src/main/java/com/twilio/rest/wireless/v1/sim/UsageRecord.java index 18dd1bb4c7..786a35d474 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/sim/UsageRecord.java +++ b/src/main/java/com/twilio/rest/wireless/v1/sim/UsageRecord.java @@ -14,29 +14,23 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; -import com.twilio.converter.Converter; import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import lombok.ToString; - import java.io.IOException; import java.io.InputStream; import java.util.Map; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class UsageRecord extends Resource { private static final long serialVersionUID = 59802698873070L; - public enum Granularity { + public String toString() { + return "UsageRecord(simSid=" + this.getSimSid() + ", accountSid=" + this.getAccountSid() + ", period=" + this.getPeriod() + ", commands=" + this.getCommands() + ", data=" + this.getData() + ")"; + } + + public enum Granularity { HOURLY("hourly"), DAILY("daily"), ALL("all"); @@ -210,4 +204,4 @@ public int hashCode() { commands, data); } -} \ No newline at end of file +} diff --git a/src/main/java/com/twilio/taskrouter/TaskRouting.java b/src/main/java/com/twilio/taskrouter/TaskRouting.java index 5f4022fc01..135a4ac10c 100644 --- a/src/main/java/com/twilio/taskrouter/TaskRouting.java +++ b/src/main/java/com/twilio/taskrouter/TaskRouting.java @@ -6,15 +6,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; -import lombok.ToString; - import java.io.IOException; import java.util.List; @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class TaskRouting extends TaskRouterResource { @JsonProperty("filters") @@ -67,4 +64,8 @@ public static TaskRouting fromJson(String json) throws IOException { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, TaskRouting.class); } + + public String toString() { + return "TaskRouting(workflowRules=" + this.getWorkflowRules() + ", defaultTarget=" + this.getDefaultTarget() + ")"; + } } diff --git a/src/main/java/com/twilio/taskrouter/Workflow.java b/src/main/java/com/twilio/taskrouter/Workflow.java index ce8232555f..b7c60acd20 100644 --- a/src/main/java/com/twilio/taskrouter/Workflow.java +++ b/src/main/java/com/twilio/taskrouter/Workflow.java @@ -7,8 +7,6 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; -import lombok.ToString; - import java.io.IOException; import java.util.List; @@ -16,7 +14,6 @@ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class Workflow extends TaskRouterResource { @JsonProperty("task_routing") @@ -63,4 +60,8 @@ public static Workflow fromJson(String json) throws IOException { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, Workflow.class); } + + public String toString() { + return "Workflow(taskRouting=" + this.taskRouting + ")"; + } } diff --git a/src/main/java/com/twilio/taskrouter/WorkflowRule.java b/src/main/java/com/twilio/taskrouter/WorkflowRule.java index e9e18d34dd..68e04359cc 100644 --- a/src/main/java/com/twilio/taskrouter/WorkflowRule.java +++ b/src/main/java/com/twilio/taskrouter/WorkflowRule.java @@ -7,15 +7,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; -import lombok.ToString; - import java.io.IOException; import java.util.List; @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkflowRule extends TaskRouterResource { private final String expression; @@ -86,7 +83,11 @@ public static WorkflowRule fromJson(String json) throws IOException { return mapper.readValue(json, WorkflowRule.class); } - public static class Builder { + public String toString() { + return "WorkflowRule(expression=" + this.getExpression() + ", friendlyName=" + this.getFriendlyName() + ", targets=" + this.targets + ")"; + } + + public static class Builder { private String expression; private String friendlyName; diff --git a/src/main/java/com/twilio/taskrouter/WorkflowRuleTarget.java b/src/main/java/com/twilio/taskrouter/WorkflowRuleTarget.java index 172059e5a1..7cc05505c1 100644 --- a/src/main/java/com/twilio/taskrouter/WorkflowRuleTarget.java +++ b/src/main/java/com/twilio/taskrouter/WorkflowRuleTarget.java @@ -6,14 +6,11 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; -import lombok.ToString; - import java.io.IOException; @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class WorkflowRuleTarget extends TaskRouterResource { @JsonProperty("queue") @@ -156,7 +153,11 @@ public static WorkflowRuleTarget fromJson(String json) throws IOException { return mapper.readValue(json, WorkflowRuleTarget.class); } - public static class Builder { + public String toString() { + return "WorkflowRuleTarget(queue=" + this.getQueue() + ", expression=" + this.getExpression() + ", priority=" + this.getPriority() + ", timeout=" + this.getTimeout() + ", orderBy=" + this.getOrderBy() + ", skipIf=" + this.getSkipIf() + ", knownWorkerSid=" + this.getKnownWorkerSid() + ", knownWorkerFriendlyName=" + this.getKnownWorkerFriendlyName() + ")"; + } + + public static class Builder { private String queue; private String expression; diff --git a/src/main/java/com/twilio/twiml/TwiML.java b/src/main/java/com/twilio/twiml/TwiML.java index f8a602afac..fbff906665 100644 --- a/src/main/java/com/twilio/twiml/TwiML.java +++ b/src/main/java/com/twilio/twiml/TwiML.java @@ -1,21 +1,5 @@ package com.twilio.twiml; -import com.twilio.http.TwilioRestClient; -import lombok.ToString; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; - -import javax.xml.XMLConstants; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.transform.OutputKeys; -import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerException; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.stream.StreamResult; import java.io.StringWriter; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; @@ -25,9 +9,21 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import javax.xml.XMLConstants; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.transform.OutputKeys; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerException; +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.stream.StreamResult; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; @SuppressWarnings("checkstyle:abbreviationaswordinname") -@ToString public abstract class TwiML { private final String tagName; private final Builder builder; @@ -194,7 +190,11 @@ public int hashCode() { ); } - /** + public String toString() { + return "TwiML(tagName=" + this.getTagName() + ", builder=" + this.builder + ")"; + } + + /** * Create a new {@code TwiML} node */ public static class Builder> { diff --git a/src/main/java/com/twilio/type/FeedbackIssue.java b/src/main/java/com/twilio/type/FeedbackIssue.java index 2a1374f97d..36f96f456a 100644 --- a/src/main/java/com/twilio/type/FeedbackIssue.java +++ b/src/main/java/com/twilio/type/FeedbackIssue.java @@ -3,8 +3,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.Objects; /** @@ -16,7 +14,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class FeedbackIssue { private final int count; private final String description; @@ -70,4 +67,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(this.count, this.description, this.percentageOfTotalCalls); } + + public String toString() { + return "FeedbackIssue(count=" + this.getCount() + ", description=" + this.getDescription() + ", percentageOfTotalCalls=" + this.getPercentageOfTotalCalls() + ")"; + } } diff --git a/src/main/java/com/twilio/type/IceServer.java b/src/main/java/com/twilio/type/IceServer.java index 1729155f54..bc750212e8 100644 --- a/src/main/java/com/twilio/type/IceServer.java +++ b/src/main/java/com/twilio/type/IceServer.java @@ -3,12 +3,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; /** * POJO representation of a Twilio ICE server. */ -@Data @JsonIgnoreProperties(ignoreUnknown = true) public class IceServer { private final String credential; @@ -35,4 +33,76 @@ public IceServer(@JsonProperty("credential") final String credential, this.url = url; this.urls = urls; } + + public String getCredential() { + return this.credential; + } + + public String getUsername() { + return this.username; + } + + public String getUrl() { + return this.url; + } + + public String getUrls() { + return this.urls; + } + + public boolean equals(final Object o) { + if (o == this) { + return true; + } + if (!(o instanceof IceServer)) { + return false; + } + final IceServer other = (IceServer) o; + if (!other.canEqual((Object) this)) { + return false; + } + final Object this$credential = this.getCredential(); + final Object other$credential = other.getCredential(); + if (this$credential == null ? other$credential != null : !this$credential.equals(other$credential)) { + return false; + } + final Object this$username = this.getUsername(); + final Object other$username = other.getUsername(); + if (this$username == null ? other$username != null : !this$username.equals(other$username)) { + return false; + } + final Object this$url = this.getUrl(); + final Object other$url = other.getUrl(); + if (this$url == null ? other$url != null : !this$url.equals(other$url)) { + return false; + } + final Object this$urls = this.getUrls(); + final Object other$urls = other.getUrls(); + if (this$urls == null ? other$urls != null : !this$urls.equals(other$urls)) { + return false; + } + return true; + } + + protected boolean canEqual(final Object other) { + return other instanceof IceServer; + } + + public int hashCode() { + final int PRIME = 59; + int result = 1; + final Object $credential = this.getCredential(); + result = result * PRIME + ($credential == null ? 43 : $credential.hashCode()); + final Object $username = this.getUsername(); + result = result * PRIME + ($username == null ? 43 : $username.hashCode()); + final Object $url = this.getUrl(); + result = result * PRIME + ($url == null ? 43 : $url.hashCode()); + final Object $urls = this.getUrls(); + result = result * PRIME + ($urls == null ? 43 : $urls.hashCode()); + return result; + } + + public String toString() { + return "IceServer(credential=" + this.getCredential() + ", username=" + this.getUsername() + ", url=" + this.getUrl() + ", urls=" + this.getUrls() + ")"; + } } diff --git a/src/main/java/com/twilio/type/InboundCallPrice.java b/src/main/java/com/twilio/type/InboundCallPrice.java index 306b3cbb33..4c640caf08 100644 --- a/src/main/java/com/twilio/type/InboundCallPrice.java +++ b/src/main/java/com/twilio/type/InboundCallPrice.java @@ -4,8 +4,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.twilio.converter.Promoter; -import lombok.ToString; - import java.util.Objects; /** @@ -17,9 +15,13 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class InboundCallPrice { - public enum Type { + + public String toString() { + return "InboundCallPrice(basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ", type=" + this.getType() + ")"; + } + + public enum Type { LOCAL("local"), MOBILE("mobile"), NATIONAL("national"), diff --git a/src/main/java/com/twilio/type/InboundSmsPrice.java b/src/main/java/com/twilio/type/InboundSmsPrice.java index c036c2a7f9..1fed2a1631 100644 --- a/src/main/java/com/twilio/type/InboundSmsPrice.java +++ b/src/main/java/com/twilio/type/InboundSmsPrice.java @@ -4,8 +4,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.twilio.converter.Promoter; -import lombok.ToString; - import java.util.Objects; /** @@ -17,9 +15,13 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class InboundSmsPrice { - public enum Type { + + public String toString() { + return "InboundSmsPrice(basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ", type=" + this.getType() + ")"; + } + + public enum Type { LOCAL("local"), MOBILE("mobile"), NATIONAL("national"), diff --git a/src/main/java/com/twilio/type/OutboundCallPrice.java b/src/main/java/com/twilio/type/OutboundCallPrice.java index e4db9a1410..e70ef3db95 100644 --- a/src/main/java/com/twilio/type/OutboundCallPrice.java +++ b/src/main/java/com/twilio/type/OutboundCallPrice.java @@ -3,12 +3,9 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OutboundCallPrice { private final double basePrice; private final double currentPrice; @@ -46,4 +43,8 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(this.basePrice, this.currentPrice); } + + public String toString() { + return "OutboundCallPrice(basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ")"; + } } diff --git a/src/main/java/com/twilio/type/OutboundCallPriceWithOrigin.java b/src/main/java/com/twilio/type/OutboundCallPriceWithOrigin.java index 626b0cbe5c..7092e5ae74 100644 --- a/src/main/java/com/twilio/type/OutboundCallPriceWithOrigin.java +++ b/src/main/java/com/twilio/type/OutboundCallPriceWithOrigin.java @@ -3,13 +3,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.List; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OutboundCallPriceWithOrigin { private final double basePrice; private final double currentPrice; @@ -56,4 +53,8 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(this.basePrice, this.currentPrice, this.originationPrefixes); } + + public String toString() { + return "OutboundCallPriceWithOrigin(basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ", originationPrefixes=" + this.getOriginationPrefixes() + ")"; + } } diff --git a/src/main/java/com/twilio/type/OutboundPrefixPrice.java b/src/main/java/com/twilio/type/OutboundPrefixPrice.java index 0a42eaccb9..47d9544010 100644 --- a/src/main/java/com/twilio/type/OutboundPrefixPrice.java +++ b/src/main/java/com/twilio/type/OutboundPrefixPrice.java @@ -3,8 +3,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.List; import java.util.Objects; @@ -17,7 +15,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OutboundPrefixPrice { private final List prefixes; @@ -80,4 +77,8 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(this.prefixes, this.friendlyName, this.basePrice, this.currentPrice); } + + public String toString() { + return "OutboundPrefixPrice(prefixes=" + this.getPrefixes() + ", friendlyName=" + this.getFriendlyName() + ", basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ")"; + } } diff --git a/src/main/java/com/twilio/type/OutboundPrefixPriceWithOrigin.java b/src/main/java/com/twilio/type/OutboundPrefixPriceWithOrigin.java index 3b45b25a03..1c51d4e107 100644 --- a/src/main/java/com/twilio/type/OutboundPrefixPriceWithOrigin.java +++ b/src/main/java/com/twilio/type/OutboundPrefixPriceWithOrigin.java @@ -3,8 +3,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.List; import java.util.Objects; @@ -12,7 +10,6 @@ * Outbound prices for prefixes with origin. */ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OutboundPrefixPriceWithOrigin { private final List destination_prefixes; @@ -84,4 +81,8 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(this.destination_prefixes, this.origination_prefixes, this.friendlyName, this.basePrice, this.currentPrice); } + + public String toString() { + return "OutboundPrefixPriceWithOrigin(destination_prefixes=" + this.destination_prefixes + ", origination_prefixes=" + this.origination_prefixes + ", friendlyName=" + this.getFriendlyName() + ", basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ")"; + } } diff --git a/src/main/java/com/twilio/type/OutboundSmsPrice.java b/src/main/java/com/twilio/type/OutboundSmsPrice.java index 91a1937833..9d871ba0cd 100644 --- a/src/main/java/com/twilio/type/OutboundSmsPrice.java +++ b/src/main/java/com/twilio/type/OutboundSmsPrice.java @@ -3,8 +3,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.List; import java.util.Objects; @@ -17,7 +15,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class OutboundSmsPrice { private final String mcc; private final String mnc; @@ -79,4 +76,8 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(this.mcc, this.mnc, this.carrier, this.prices); } + + public String toString() { + return "OutboundSmsPrice(mcc=" + this.getMcc() + ", mnc=" + this.getMnc() + ", carrier=" + this.getCarrier() + ", prices=" + this.getPrices() + ")"; + } } diff --git a/src/main/java/com/twilio/type/PhoneNumberCapabilities.java b/src/main/java/com/twilio/type/PhoneNumberCapabilities.java index f56bf2794e..4391b73b49 100644 --- a/src/main/java/com/twilio/type/PhoneNumberCapabilities.java +++ b/src/main/java/com/twilio/type/PhoneNumberCapabilities.java @@ -3,8 +3,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.Objects; /** @@ -16,7 +14,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PhoneNumberCapabilities { private final boolean mms; private final boolean sms; @@ -79,4 +76,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(this.mms, this.sms, this.voice, this.fax); } + + public String toString() { + return "PhoneNumberCapabilities(mms=" + this.mms + ", sms=" + this.sms + ", voice=" + this.voice + ", fax=" + this.fax + ")"; + } } diff --git a/src/main/java/com/twilio/type/PhoneNumberPrice.java b/src/main/java/com/twilio/type/PhoneNumberPrice.java index 7f7f2b29df..695e4d40e0 100644 --- a/src/main/java/com/twilio/type/PhoneNumberPrice.java +++ b/src/main/java/com/twilio/type/PhoneNumberPrice.java @@ -4,8 +4,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.twilio.converter.Promoter; -import lombok.ToString; - import java.util.Objects; /** @@ -17,10 +15,13 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class PhoneNumberPrice { - /** + public String toString() { + return "PhoneNumberPrice(basePrice=" + this.getBasePrice() + ", currentPrice=" + this.getCurrentPrice() + ", type=" + this.getType() + ")"; + } + + /** * Possible phone number type. */ public enum Type { diff --git a/src/main/java/com/twilio/type/RecordingRule.java b/src/main/java/com/twilio/type/RecordingRule.java index 986398da08..efc09accd5 100644 --- a/src/main/java/com/twilio/type/RecordingRule.java +++ b/src/main/java/com/twilio/type/RecordingRule.java @@ -2,8 +2,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.Objects; /** @@ -15,7 +13,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RecordingRule implements Rule { private static final RecordingRule recordAll = builder().withType(Type.INCLUDE).withAll().build(); @@ -60,7 +57,11 @@ public static BuilderStart builder() { return new Builder(); } - public interface BuilderStart { + public String toString() { + return "RecordingRule(type=" + this.getType() + ", all=" + this.getAll() + ", publisher=" + this.getPublisher() + ", track=" + this.getTrack() + ", kind=" + this.getKind() + ")"; + } + + public interface BuilderStart { BuilderMiddle withType(final Type type); } diff --git a/src/main/java/com/twilio/type/RecordingRulesUpdate.java b/src/main/java/com/twilio/type/RecordingRulesUpdate.java index 11c0da14d4..6002f8cb0a 100644 --- a/src/main/java/com/twilio/type/RecordingRulesUpdate.java +++ b/src/main/java/com/twilio/type/RecordingRulesUpdate.java @@ -2,8 +2,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.List; import java.util.Objects; @@ -16,7 +14,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class RecordingRulesUpdate { @JsonProperty("rules") @@ -42,4 +39,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(getRules()); } + + public String toString() { + return "RecordingRulesUpdate(rules=" + this.getRules() + ")"; + } } diff --git a/src/main/java/com/twilio/type/SubscribeRule.java b/src/main/java/com/twilio/type/SubscribeRule.java index ee2b505596..dcc5550066 100644 --- a/src/main/java/com/twilio/type/SubscribeRule.java +++ b/src/main/java/com/twilio/type/SubscribeRule.java @@ -2,8 +2,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.Objects; /** @@ -15,7 +13,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SubscribeRule implements Rule { private static final SubscribeRule subscribeAll = builder().withType(Type.INCLUDE).withAll().build(); @@ -103,7 +100,11 @@ public static SubscribeRule none() { return subscribeNone; } - public interface BuilderStart { + public String toString() { + return "SubscribeRule(type=" + this.getType() + ", all=" + this.getAll() + ", publisher=" + this.getPublisher() + ", track=" + this.getTrack() + ", kind=" + this.getKind() + ", priority=" + this.getPriority() + ")"; + } + + public interface BuilderStart { BuilderMiddle withType(final Type type); } diff --git a/src/main/java/com/twilio/type/SubscribeRulesUpdate.java b/src/main/java/com/twilio/type/SubscribeRulesUpdate.java index 093f9f3433..8db475211f 100644 --- a/src/main/java/com/twilio/type/SubscribeRulesUpdate.java +++ b/src/main/java/com/twilio/type/SubscribeRulesUpdate.java @@ -2,8 +2,6 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.ToString; - import java.util.List; import java.util.Objects; @@ -16,7 +14,6 @@ *

*/ @JsonIgnoreProperties(ignoreUnknown = true) -@ToString public class SubscribeRulesUpdate { @JsonProperty("rules") private final List rules; @@ -41,4 +38,8 @@ public boolean equals(final Object o) { public int hashCode() { return Objects.hash(getRules()); } + + public String toString() { + return "SubscribeRulesUpdate(rules=" + this.getRules() + ")"; + } }