From 0f319f6c1a678461f394d89691e32cc7666a9739 Mon Sep 17 00:00:00 2001 From: aws-sdk-dotnet-automation Date: Tue, 21 May 2024 18:19:24 +0000 Subject: [PATCH] This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control. --- README.md | 2 + .../mailmanager-2023-10-17.api.json | 2815 ++++++++++++ .../mailmanager-2023-10-17.docs.json | 1887 ++++++++ ...lmanager-2023-10-17.endpoint-rule-set.json | 350 ++ ...mailmanager-2023-10-17.endpoint-tests.json | 314 ++ .../mailmanager-2023-10-17.examples.json | 5 + .../mailmanager-2023-10-17.normal.json | 4056 +++++++++++++++++ .../mailmanager-2023-10-17.paginators.json | 58 + .../ServiceModels/mailmanager/metadata.json | 5 + .../ServiceModels/mailmanager/smoke.json | 6 + .../ServiceModels/mailmanager/waiters2.json | 5 + sdk/AWSSDK.CodeAnalysis.sln | 7 + sdk/AWSSDK.Net35.Travis.sln | 10 + sdk/AWSSDK.Net35.sln | 10 + sdk/AWSSDK.Net45.Travis.sln | 10 + sdk/AWSSDK.Net45.sln | 10 + sdk/AWSSDK.NetStandard.sln | 10 + .../AWSSDK.MailManager.CodeAnalysis.csproj | 33 + .../PropertyValueAssignmentAnalyzer.cs | 25 + .../Generated/PropertyValueRules.xml | 827 ++++ .../MailManager/Properties/AssemblyInfo.cs | 32 + .../AWSSDK.MailManager.Net35.csproj | 83 + .../AWSSDK.MailManager.Net45.csproj | 74 + .../AWSSDK.MailManager.NetStandard.csproj | 84 + .../Generated/AmazonMailManagerConfig.cs | 93 + .../AmazonMailManagerDefaultConfiguration.cs | 146 + .../AmazonMailManagerEndpointParameters.cs | 78 + .../Generated/AmazonMailManagerException.cs | 105 + .../AmazonMailManagerEndpointProvider.cs | 103 + .../AmazonMailManagerEndpointResolver.cs | 91 + .../Internal/AmazonMailManagerMetadata.cs | 55 + .../Generated/Model/AccessDeniedException.cs | 125 + .../Generated/Model/AddHeaderAction.cs | 81 + .../Generated/Model/AddonInstance.cs | 136 + .../Generated/Model/AddonSubscription.cs | 117 + .../Model/AmazonMailManagerRequest.cs | 30 + .../MailManager/Generated/Model/Analysis.cs | 80 + .../MailManager/Generated/Model/Archive.cs | 127 + .../Generated/Model/ArchiveAction.cs | 79 + .../Model/ArchiveBooleanExpression.cs | 79 + .../Model/ArchiveBooleanToEvaluate.cs | 58 + .../Generated/Model/ArchiveFilterCondition.cs | 78 + .../Generated/Model/ArchiveFilters.cs | 79 + .../Generated/Model/ArchiveRetention.cs | 59 + .../Model/ArchiveStringExpression.cs | 100 + .../Model/ArchiveStringToEvaluate.cs | 58 + .../Generated/Model/ConflictException.cs | 125 + .../Model/CreateAddonInstanceRequest.cs | 104 + .../Model/CreateAddonInstanceResponse.cs | 59 + .../Model/CreateAddonSubscriptionRequest.cs | 104 + .../Model/CreateAddonSubscriptionResponse.cs | 59 + .../Generated/Model/CreateArchiveRequest.cs | 139 + .../Generated/Model/CreateArchiveResponse.cs | 59 + .../Model/CreateIngressPointRequest.cs | 182 + .../Model/CreateIngressPointResponse.cs | 59 + .../Generated/Model/CreateRelayRequest.cs | 163 + .../Generated/Model/CreateRelayResponse.cs | 59 + .../Generated/Model/CreateRuleSetRequest.cs | 121 + .../Generated/Model/CreateRuleSetResponse.cs | 59 + .../Model/CreateTrafficPolicyRequest.cs | 163 + .../Model/CreateTrafficPolicyResponse.cs | 59 + .../Model/DeleteAddonInstanceRequest.cs | 60 + .../Model/DeleteAddonInstanceResponse.cs | 39 + .../Model/DeleteAddonSubscriptionRequest.cs | 60 + .../Model/DeleteAddonSubscriptionResponse.cs | 39 + .../Generated/Model/DeleteArchiveRequest.cs | 64 + .../Generated/Model/DeleteArchiveResponse.cs | 44 + .../Model/DeleteIngressPointRequest.cs | 60 + .../Model/DeleteIngressPointResponse.cs | 39 + .../Generated/Model/DeleteRelayRequest.cs | 60 + .../Generated/Model/DeleteRelayResponse.cs | 39 + .../Generated/Model/DeleteRuleSetRequest.cs | 60 + .../Generated/Model/DeleteRuleSetResponse.cs | 39 + .../Model/DeleteTrafficPolicyRequest.cs | 60 + .../Model/DeleteTrafficPolicyResponse.cs | 39 + .../Generated/Model/DeliverToMailboxAction.cs | 100 + .../MailManager/Generated/Model/DropAction.cs | 41 + .../Model/ExportDestinationConfiguration.cs | 58 + .../Generated/Model/ExportStatus.cs | 115 + .../Generated/Model/ExportSummary.cs | 78 + .../Model/GetAddonInstanceRequest.cs | 60 + .../Model/GetAddonInstanceResponse.cs | 116 + .../Model/GetAddonSubscriptionRequest.cs | 60 + .../Model/GetAddonSubscriptionResponse.cs | 96 + .../Model/GetArchiveExportRequest.cs | 60 + .../Model/GetArchiveExportResponse.cs | 173 + .../Model/GetArchiveMessageContentRequest.cs | 61 + .../Model/GetArchiveMessageContentResponse.cs | 58 + .../Model/GetArchiveMessageRequest.cs | 61 + .../Model/GetArchiveMessageResponse.cs | 58 + .../Generated/Model/GetArchiveRequest.cs | 60 + .../Generated/Model/GetArchiveResponse.cs | 206 + .../Model/GetArchiveSearchRequest.cs | 60 + .../Model/GetArchiveSearchResponse.cs | 155 + .../Model/GetArchiveSearchResultsRequest.cs | 60 + .../Model/GetArchiveSearchResultsResponse.cs | 58 + .../Generated/Model/GetIngressPointRequest.cs | 60 + .../Model/GetIngressPointResponse.cs | 253 + .../Generated/Model/GetRelayRequest.cs | 60 + .../Generated/Model/GetRelayResponse.cs | 196 + .../Generated/Model/GetRuleSetRequest.cs | 60 + .../Generated/Model/GetRuleSetResponse.cs | 159 + .../Model/GetTrafficPolicyRequest.cs | 60 + .../Model/GetTrafficPolicyResponse.cs | 195 + .../Generated/Model/IngressAnalysis.cs | 80 + .../Model/IngressBooleanExpression.cs | 79 + .../Model/IngressBooleanToEvaluate.cs | 59 + .../Generated/Model/IngressIpToEvaluate.cs | 58 + .../Generated/Model/IngressIpv4Expression.cs | 99 + .../Generated/Model/IngressPoint.cs | 139 + .../Model/IngressPointAuthConfiguration.cs | 78 + .../Model/IngressPointConfiguration.cs | 78 + .../IngressPointPasswordConfiguration.cs | 96 + .../Model/IngressStringExpression.cs | 99 + .../Model/IngressStringToEvaluate.cs | 58 + .../Model/IngressTlsProtocolExpression.cs | 99 + .../Model/IngressTlsProtocolToEvaluate.cs | 58 + .../AccessDeniedExceptionUnmarshaller.cs | 86 + .../AddHeaderActionMarshaller.cs | 71 + .../AddHeaderActionUnmarshaller.cs | 97 + .../AddonInstanceUnmarshaller.cs | 115 + .../AddonSubscriptionUnmarshaller.cs | 109 + .../AnalysisMarshaller.cs | 71 + .../AnalysisUnmarshaller.cs | 97 + .../ArchiveActionMarshaller.cs | 71 + .../ArchiveActionUnmarshaller.cs | 97 + .../ArchiveBooleanExpressionMarshaller.cs | 76 + .../ArchiveBooleanExpressionUnmarshaller.cs | 97 + .../ArchiveBooleanToEvaluateMarshaller.cs | 65 + .../ArchiveBooleanToEvaluateUnmarshaller.cs | 91 + .../ArchiveFilterConditionMarshaller.cs | 81 + .../ArchiveFilterConditionUnmarshaller.cs | 97 + .../ArchiveFiltersMarshaller.cs | 91 + .../ArchiveFiltersUnmarshaller.cs | 97 + .../ArchiveRetentionMarshaller.cs | 65 + .../ArchiveRetentionUnmarshaller.cs | 91 + .../ArchiveStringExpressionMarshaller.cs | 87 + .../ArchiveStringExpressionUnmarshaller.cs | 103 + .../ArchiveStringToEvaluateMarshaller.cs | 65 + .../ArchiveStringToEvaluateUnmarshaller.cs | 91 + .../ArchiveUnmarshaller.cs | 109 + .../ConflictExceptionUnmarshaller.cs | 86 + .../CreateAddonInstanceRequestMarshaller.cs | 132 + ...CreateAddonInstanceResponseUnmarshaller.cs | 123 + ...reateAddonSubscriptionRequestMarshaller.cs | 132 + ...teAddonSubscriptionResponseUnmarshaller.cs | 119 + .../CreateArchiveRequestMarshaller.cs | 149 + .../CreateArchiveResponseUnmarshaller.cs | 127 + .../CreateIngressPointRequestMarshaller.cs | 161 + .../CreateIngressPointResponseUnmarshaller.cs | 119 + .../CreateRelayRequestMarshaller.cs | 155 + .../CreateRelayResponseUnmarshaller.cs | 119 + .../CreateRuleSetRequestMarshaller.cs | 148 + .../CreateRuleSetResponseUnmarshaller.cs | 119 + .../CreateTrafficPolicyRequestMarshaller.cs | 160 + ...CreateTrafficPolicyResponseUnmarshaller.cs | 119 + .../DeleteAddonInstanceRequestMarshaller.cs | 105 + ...DeleteAddonInstanceResponseUnmarshaller.cs | 104 + ...eleteAddonSubscriptionRequestMarshaller.cs | 105 + ...teAddonSubscriptionResponseUnmarshaller.cs | 104 + .../DeleteArchiveRequestMarshaller.cs | 105 + .../DeleteArchiveResponseUnmarshaller.cs | 112 + .../DeleteIngressPointRequestMarshaller.cs | 105 + .../DeleteIngressPointResponseUnmarshaller.cs | 108 + .../DeleteRelayRequestMarshaller.cs | 105 + .../DeleteRelayResponseUnmarshaller.cs | 108 + .../DeleteRuleSetRequestMarshaller.cs | 105 + .../DeleteRuleSetResponseUnmarshaller.cs | 104 + .../DeleteTrafficPolicyRequestMarshaller.cs | 105 + ...DeleteTrafficPolicyResponseUnmarshaller.cs | 108 + .../DeliverToMailboxActionMarshaller.cs | 77 + .../DeliverToMailboxActionUnmarshaller.cs | 103 + .../DropActionMarshaller.cs | 59 + .../DropActionUnmarshaller.cs | 85 + ...xportDestinationConfigurationMarshaller.cs | 70 + ...ortDestinationConfigurationUnmarshaller.cs | 91 + .../ExportStatusUnmarshaller.cs | 109 + .../ExportSummaryUnmarshaller.cs | 97 + .../GetAddonInstanceRequestMarshaller.cs | 105 + .../GetAddonInstanceResponseUnmarshaller.cs | 133 + .../GetAddonSubscriptionRequestMarshaller.cs | 105 + ...etAddonSubscriptionResponseUnmarshaller.cs | 127 + .../GetArchiveExportRequestMarshaller.cs | 105 + .../GetArchiveExportResponseUnmarshaller.cs | 155 + ...tArchiveMessageContentRequestMarshaller.cs | 105 + ...chiveMessageContentResponseUnmarshaller.cs | 119 + .../GetArchiveMessageRequestMarshaller.cs | 105 + .../GetArchiveMessageResponseUnmarshaller.cs | 119 + .../GetArchiveRequestMarshaller.cs | 105 + .../GetArchiveResponseUnmarshaller.cs | 165 + .../GetArchiveSearchRequestMarshaller.cs | 105 + .../GetArchiveSearchResponseUnmarshaller.cs | 149 + ...etArchiveSearchResultsRequestMarshaller.cs | 105 + ...rchiveSearchResultsResponseUnmarshaller.cs | 123 + .../GetIngressPointRequestMarshaller.cs | 105 + .../GetIngressPointResponseUnmarshaller.cs | 175 + .../GetRelayRequestMarshaller.cs | 105 + .../GetRelayResponseUnmarshaller.cs | 157 + .../GetRuleSetRequestMarshaller.cs | 105 + .../GetRuleSetResponseUnmarshaller.cs | 145 + .../GetTrafficPolicyRequestMarshaller.cs | 105 + .../GetTrafficPolicyResponseUnmarshaller.cs | 157 + .../IngressAnalysisMarshaller.cs | 71 + .../IngressAnalysisUnmarshaller.cs | 97 + .../IngressBooleanExpressionMarshaller.cs | 76 + .../IngressBooleanExpressionUnmarshaller.cs | 97 + .../IngressBooleanToEvaluateMarshaller.cs | 70 + .../IngressBooleanToEvaluateUnmarshaller.cs | 91 + .../IngressIpToEvaluateMarshaller.cs | 65 + .../IngressIpToEvaluateUnmarshaller.cs | 91 + .../IngressIpv4ExpressionMarshaller.cs | 87 + .../IngressIpv4ExpressionUnmarshaller.cs | 103 + ...gressPointAuthConfigurationUnmarshaller.cs | 97 + .../IngressPointConfigurationMarshaller.cs | 71 + ...sPointPasswordConfigurationUnmarshaller.cs | 103 + .../IngressPointUnmarshaller.cs | 115 + .../IngressStringExpressionMarshaller.cs | 87 + .../IngressStringExpressionUnmarshaller.cs | 103 + .../IngressStringToEvaluateMarshaller.cs | 65 + .../IngressStringToEvaluateUnmarshaller.cs | 91 + .../IngressTlsProtocolExpressionMarshaller.cs | 82 + ...ngressTlsProtocolExpressionUnmarshaller.cs | 103 + .../IngressTlsProtocolToEvaluateMarshaller.cs | 65 + ...ngressTlsProtocolToEvaluateUnmarshaller.cs | 91 + .../ListAddonInstancesRequestMarshaller.cs | 111 + .../ListAddonInstancesResponseUnmarshaller.cs | 117 + ...ListAddonSubscriptionsRequestMarshaller.cs | 111 + ...tAddonSubscriptionsResponseUnmarshaller.cs | 117 + .../ListArchiveExportsRequestMarshaller.cs | 117 + .../ListArchiveExportsResponseUnmarshaller.cs | 129 + .../ListArchiveSearchesRequestMarshaller.cs | 117 + ...ListArchiveSearchesResponseUnmarshaller.cs | 129 + .../ListArchivesRequestMarshaller.cs | 111 + .../ListArchivesResponseUnmarshaller.cs | 125 + .../ListIngressPointsRequestMarshaller.cs | 111 + .../ListIngressPointsResponseUnmarshaller.cs | 117 + .../ListRelaysRequestMarshaller.cs | 111 + .../ListRelaysResponseUnmarshaller.cs | 117 + .../ListRuleSetsRequestMarshaller.cs | 111 + .../ListRuleSetsResponseUnmarshaller.cs | 117 + .../ListTagsForResourceRequestMarshaller.cs | 105 + ...ListTagsForResourceResponseUnmarshaller.cs | 115 + .../ListTrafficPoliciesRequestMarshaller.cs | 111 + ...ListTrafficPoliciesResponseUnmarshaller.cs | 117 + .../MessageBodyUnmarshaller.cs | 103 + .../NoAuthenticationMarshaller.cs | 59 + .../NoAuthenticationUnmarshaller.cs | 85 + .../PolicyConditionMarshaller.cs | 103 + .../PolicyConditionUnmarshaller.cs | 109 + .../PolicyStatementMarshaller.cs | 81 + .../PolicyStatementUnmarshaller.cs | 97 + .../RelayActionMarshaller.cs | 77 + .../RelayActionUnmarshaller.cs | 103 + .../RelayAuthenticationMarshaller.cs | 76 + .../RelayAuthenticationUnmarshaller.cs | 97 + .../RelayUnmarshaller.cs | 103 + .../ReplaceRecipientActionMarshaller.cs | 70 + .../ReplaceRecipientActionUnmarshaller.cs | 91 + .../ResourceNotFoundExceptionUnmarshaller.cs | 86 + .../RowUnmarshaller.cs | 169 + .../RuleActionMarshaller.cs | 147 + .../RuleActionUnmarshaller.cs | 133 + .../RuleBooleanExpressionMarshaller.cs | 76 + .../RuleBooleanExpressionUnmarshaller.cs | 97 + .../RuleBooleanToEvaluateMarshaller.cs | 65 + .../RuleBooleanToEvaluateUnmarshaller.cs | 91 + .../RuleConditionMarshaller.cs | 125 + .../RuleConditionUnmarshaller.cs | 121 + .../RuleDmarcExpressionMarshaller.cs | 76 + .../RuleDmarcExpressionUnmarshaller.cs | 97 + .../RuleIpExpressionMarshaller.cs | 87 + .../RuleIpExpressionUnmarshaller.cs | 103 + .../RuleIpToEvaluateMarshaller.cs | 65 + .../RuleIpToEvaluateUnmarshaller.cs | 91 + .../MarshallTransformations/RuleMarshaller.cs | 113 + .../RuleNumberExpressionMarshaller.cs | 89 + .../RuleNumberExpressionUnmarshaller.cs | 103 + .../RuleNumberToEvaluateMarshaller.cs | 65 + .../RuleNumberToEvaluateUnmarshaller.cs | 91 + .../RuleSetUnmarshaller.cs | 103 + .../RuleStringExpressionMarshaller.cs | 87 + .../RuleStringExpressionUnmarshaller.cs | 103 + .../RuleStringToEvaluateMarshaller.cs | 65 + .../RuleStringToEvaluateUnmarshaller.cs | 91 + .../RuleUnmarshaller.cs | 109 + .../RuleVerdictExpressionMarshaller.cs | 87 + .../RuleVerdictExpressionUnmarshaller.cs | 103 + .../RuleVerdictToEvaluateMarshaller.cs | 76 + .../RuleVerdictToEvaluateUnmarshaller.cs | 97 + .../S3ActionMarshaller.cs | 89 + .../S3ActionUnmarshaller.cs | 115 + ...xportDestinationConfigurationMarshaller.cs | 65 + ...ortDestinationConfigurationUnmarshaller.cs | 91 + .../SearchStatusUnmarshaller.cs | 109 + .../SearchSummaryUnmarshaller.cs | 97 + .../SendActionMarshaller.cs | 71 + .../SendActionUnmarshaller.cs | 97 + ...rviceQuotaExceededExceptionUnmarshaller.cs | 86 + .../StartArchiveExportRequestMarshaller.cs | 145 + .../StartArchiveExportResponseUnmarshaller.cs | 127 + .../StartArchiveSearchRequestMarshaller.cs | 134 + .../StartArchiveSearchResponseUnmarshaller.cs | 131 + .../StopArchiveExportRequestMarshaller.cs | 105 + .../StopArchiveExportResponseUnmarshaller.cs | 108 + .../StopArchiveSearchRequestMarshaller.cs | 105 + .../StopArchiveSearchResponseUnmarshaller.cs | 108 + .../MarshallTransformations/TagMarshaller.cs | 71 + .../TagResourceRequestMarshaller.cs | 121 + .../TagResourceResponseUnmarshaller.cs | 112 + .../TagUnmarshaller.cs | 97 + .../ThrottlingExceptionUnmarshaller.cs | 86 + .../TrafficPolicyUnmarshaller.cs | 103 + .../UntagResourceRequestMarshaller.cs | 116 + .../UntagResourceResponseUnmarshaller.cs | 108 + .../UpdateArchiveRequestMarshaller.cs | 122 + .../UpdateArchiveResponseUnmarshaller.cs | 120 + .../UpdateIngressPointRequestMarshaller.cs | 140 + .../UpdateIngressPointResponseUnmarshaller.cs | 108 + .../UpdateRelayRequestMarshaller.cs | 134 + .../UpdateRelayResponseUnmarshaller.cs | 108 + .../UpdateRuleSetRequestMarshaller.cs | 127 + .../UpdateRuleSetResponseUnmarshaller.cs | 108 + .../UpdateTrafficPolicyRequestMarshaller.cs | 139 + ...UpdateTrafficPolicyResponseUnmarshaller.cs | 108 + .../ValidationExceptionUnmarshaller.cs | 86 + .../Model/ListAddonInstancesRequest.cs | 82 + .../Model/ListAddonInstancesResponse.cs | 80 + .../Model/ListAddonSubscriptionsRequest.cs | 82 + .../Model/ListAddonSubscriptionsResponse.cs | 80 + .../Model/ListArchiveExportsRequest.cs | 103 + .../Model/ListArchiveExportsResponse.cs | 78 + .../Model/ListArchiveSearchesRequest.cs | 103 + .../Model/ListArchiveSearchesResponse.cs | 78 + .../Generated/Model/ListArchivesRequest.cs | 83 + .../Generated/Model/ListArchivesResponse.cs | 79 + .../Model/ListIngressPointsRequest.cs | 82 + .../Model/ListIngressPointsResponse.cs | 80 + .../Generated/Model/ListRelaysRequest.cs | 80 + .../Generated/Model/ListRelaysResponse.cs | 81 + .../Generated/Model/ListRuleSetsRequest.cs | 82 + .../Generated/Model/ListRuleSetsResponse.cs | 81 + .../Model/ListTagsForResourceRequest.cs | 60 + .../Model/ListTagsForResourceResponse.cs | 60 + .../Model/ListTrafficPoliciesRequest.cs | 82 + .../Model/ListTrafficPoliciesResponse.cs | 80 + .../Generated/Model/MessageBody.cs | 96 + .../Generated/Model/NoAuthentication.cs | 40 + .../Generated/Model/PolicyCondition.cs | 123 + .../Generated/Model/PolicyStatement.cs | 80 + .../MailManager/Generated/Model/Relay.cs | 99 + .../Generated/Model/RelayAction.cs | 99 + .../Generated/Model/RelayAuthentication.cs | 81 + .../Generated/Model/ReplaceRecipientAction.cs | 62 + .../Model/ResourceNotFoundException.cs | 125 + .../MailManager/Generated/Model/Row.cs | 305 ++ .../MailManager/Generated/Model/Rule.cs | 129 + .../MailManager/Generated/Model/RuleAction.cs | 191 + .../Generated/Model/RuleBooleanExpression.cs | 79 + .../Generated/Model/RuleBooleanToEvaluate.cs | 58 + .../Generated/Model/RuleCondition.cs | 154 + .../Generated/Model/RuleDmarcExpression.cs | 84 + .../Generated/Model/RuleIpExpression.cs | 105 + .../Generated/Model/RuleIpToEvaluate.cs | 58 + .../Generated/Model/RuleNumberExpression.cs | 99 + .../Generated/Model/RuleNumberToEvaluate.cs | 58 + .../MailManager/Generated/Model/RuleSet.cs | 99 + .../Generated/Model/RuleStringExpression.cs | 103 + .../Generated/Model/RuleStringToEvaluate.cs | 58 + .../Generated/Model/RuleVerdictExpression.cs | 103 + .../Generated/Model/RuleVerdictToEvaluate.cs | 77 + .../MailManager/Generated/Model/S3Action.cs | 141 + .../Model/S3ExportDestinationConfiguration.cs | 58 + .../Generated/Model/SearchStatus.cs | 115 + .../Generated/Model/SearchSummary.cs | 78 + .../MailManager/Generated/Model/SendAction.cs | 81 + .../Model/ServiceQuotaExceededException.cs | 125 + .../Model/StartArchiveExportRequest.cs | 158 + .../Model/StartArchiveExportResponse.cs | 59 + .../Model/StartArchiveSearchRequest.cs | 139 + .../Model/StartArchiveSearchResponse.cs | 59 + .../Model/StopArchiveExportRequest.cs | 60 + .../Model/StopArchiveExportResponse.cs | 44 + .../Model/StopArchiveSearchRequest.cs | 60 + .../Model/StopArchiveSearchResponse.cs | 44 + .../MailManager/Generated/Model/Tag.cs | 80 + .../Generated/Model/TagResourceRequest.cs | 81 + .../Generated/Model/TagResourceResponse.cs | 39 + .../Generated/Model/ThrottlingException.cs | 126 + .../Generated/Model/TrafficPolicy.cs | 100 + .../Generated/Model/UntagResourceRequest.cs | 81 + .../Generated/Model/UntagResourceResponse.cs | 39 + .../Generated/Model/UpdateArchiveRequest.cs | 99 + .../Generated/Model/UpdateArchiveResponse.cs | 44 + .../Model/UpdateIngressPointRequest.cs | 160 + .../Model/UpdateIngressPointResponse.cs | 39 + .../Generated/Model/UpdateRelayRequest.cs | 140 + .../Generated/Model/UpdateRelayResponse.cs | 39 + .../Generated/Model/UpdateRuleSetRequest.cs | 101 + .../Generated/Model/UpdateRuleSetResponse.cs | 39 + .../Model/UpdateTrafficPolicyRequest.cs | 140 + .../Model/UpdateTrafficPolicyResponse.cs | 39 + .../Generated/Model/ValidationException.cs | 125 + .../IListAddonInstancesPaginator.cs | 39 + .../IListAddonSubscriptionsPaginator.cs | 39 + .../IListArchiveExportsPaginator.cs | 39 + .../IListArchiveSearchesPaginator.cs | 39 + .../IListArchivesPaginator.cs | 39 + .../IListIngressPointsPaginator.cs | 39 + .../IListRelaysPaginator.cs | 39 + .../IListRuleSetsPaginator.cs | 39 + .../IListTrafficPoliciesPaginator.cs | 39 + .../IMailManagerPaginatorFactory.cs | 74 + .../ListAddonInstancesPaginator.cs | 98 + .../ListAddonSubscriptionsPaginator.cs | 98 + .../ListArchiveExportsPaginator.cs | 98 + .../ListArchiveSearchesPaginator.cs | 98 + .../ListArchivesPaginator.cs | 98 + .../ListIngressPointsPaginator.cs | 98 + .../_bcl45+netstandard/ListRelaysPaginator.cs | 98 + .../ListRuleSetsPaginator.cs | 98 + .../ListTrafficPoliciesPaginator.cs | 98 + .../MailManagerPaginatorFactory.cs | 111 + .../Generated/ServiceEnumerations.cs | 1936 ++++++++ .../_bcl35/AmazonMailManagerClient.cs | 3277 +++++++++++++ .../Generated/_bcl35/IAmazonMailManager.cs | 2388 ++++++++++ .../_bcl45/AmazonMailManagerClient.cs | 3101 +++++++++++++ .../Generated/_bcl45/IAmazonMailManager.cs | 2257 +++++++++ .../_netstandard/AmazonMailManagerClient.cs | 2341 ++++++++++ .../_netstandard/IAmazonMailManager.cs | 1352 ++++++ sdk/src/Services/MailManager/MailManager.sln | 199 + .../MailManager/Properties/AssemblyInfo.cs | 51 + .../AWSSDK.UnitTests.MailManager.Net35.csproj | 57 + .../AWSSDK.UnitTests.MailManager.Net45.csproj | 53 + .../MailManagerEndpointProviderTests.cs | 406 ++ 434 files changed, 66202 insertions(+) create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.api.json create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.docs.json create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-rule-set.json create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-tests.json create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.examples.json create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.normal.json create mode 100644 generator/ServiceModels/mailmanager/mailmanager-2023-10-17.paginators.json create mode 100644 generator/ServiceModels/mailmanager/metadata.json create mode 100644 generator/ServiceModels/mailmanager/smoke.json create mode 100644 generator/ServiceModels/mailmanager/waiters2.json create mode 100644 sdk/code-analysis/ServiceAnalysis/MailManager/AWSSDK.MailManager.CodeAnalysis.csproj create mode 100644 sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueAssignmentAnalyzer.cs create mode 100644 sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueRules.xml create mode 100644 sdk/code-analysis/ServiceAnalysis/MailManager/Properties/AssemblyInfo.cs create mode 100644 sdk/src/Services/MailManager/AWSSDK.MailManager.Net35.csproj create mode 100644 sdk/src/Services/MailManager/AWSSDK.MailManager.Net45.csproj create mode 100644 sdk/src/Services/MailManager/AWSSDK.MailManager.NetStandard.csproj create mode 100644 sdk/src/Services/MailManager/Generated/AmazonMailManagerConfig.cs create mode 100644 sdk/src/Services/MailManager/Generated/AmazonMailManagerDefaultConfiguration.cs create mode 100644 sdk/src/Services/MailManager/Generated/AmazonMailManagerEndpointParameters.cs create mode 100644 sdk/src/Services/MailManager/Generated/AmazonMailManagerException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointProvider.cs create mode 100644 sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointResolver.cs create mode 100644 sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerMetadata.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/AccessDeniedException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/AddHeaderAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/AddonInstance.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/AddonSubscription.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/AmazonMailManagerRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Analysis.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Archive.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveFilterCondition.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveFilters.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveRetention.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveStringExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ArchiveStringToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ConflictException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateArchiveRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateArchiveResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateIngressPointRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateIngressPointResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateRelayRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateRelayResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateRuleSetRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateRuleSetResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteArchiveRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteArchiveResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteRelayRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteRelayResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DeliverToMailboxAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/DropAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ExportDestinationConfiguration.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ExportStatus.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ExportSummary.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveExportRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveExportResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetIngressPointRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetIngressPointResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetRelayRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetRelayResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetRuleSetRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetRuleSetResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressAnalysis.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressBooleanExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressBooleanToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressIpToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressIpv4Expression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressPoint.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressPointAuthConfiguration.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressPointConfiguration.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressPointPasswordConfiguration.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressStringExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressStringToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonInstanceUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonSubscriptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportStatusUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportSummaryUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointAuthConfigurationUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointConfigurationMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointPasswordConfigurationUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/MessageBodyUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RowUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleSetUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchStatusUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchSummaryUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TrafficPolicyUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyRequestMarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyResponseUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListArchivesRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListArchivesResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListIngressPointsRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListIngressPointsResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListRelaysRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListRelaysResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListRuleSetsRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListRuleSetsResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/MessageBody.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/NoAuthentication.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/PolicyCondition.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/PolicyStatement.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Relay.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RelayAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RelayAuthentication.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ReplaceRecipientAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ResourceNotFoundException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Row.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Rule.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleBooleanExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleBooleanToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleCondition.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleDmarcExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleIpExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleIpToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleNumberExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleNumberToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleSet.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleStringExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleStringToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleVerdictExpression.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/RuleVerdictToEvaluate.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/S3Action.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/S3ExportDestinationConfiguration.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/SearchStatus.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/SearchSummary.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/SendAction.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ServiceQuotaExceededException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StartArchiveExportRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StartArchiveExportResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StopArchiveExportRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StopArchiveExportResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/Tag.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/TagResourceRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/TagResourceResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ThrottlingException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/TrafficPolicy.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UntagResourceRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UntagResourceResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateArchiveRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateArchiveResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateRelayRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateRelayResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyRequest.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyResponse.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/ValidationException.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonInstancesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonSubscriptionsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveExportsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveSearchesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchivesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListIngressPointsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRelaysPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRuleSetsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListTrafficPoliciesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IMailManagerPaginatorFactory.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonInstancesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonSubscriptionsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveExportsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveSearchesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchivesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListIngressPointsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRelaysPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRuleSetsPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListTrafficPoliciesPaginator.cs create mode 100644 sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/MailManagerPaginatorFactory.cs create mode 100644 sdk/src/Services/MailManager/Generated/ServiceEnumerations.cs create mode 100644 sdk/src/Services/MailManager/Generated/_bcl35/AmazonMailManagerClient.cs create mode 100644 sdk/src/Services/MailManager/Generated/_bcl35/IAmazonMailManager.cs create mode 100644 sdk/src/Services/MailManager/Generated/_bcl45/AmazonMailManagerClient.cs create mode 100644 sdk/src/Services/MailManager/Generated/_bcl45/IAmazonMailManager.cs create mode 100644 sdk/src/Services/MailManager/Generated/_netstandard/AmazonMailManagerClient.cs create mode 100644 sdk/src/Services/MailManager/Generated/_netstandard/IAmazonMailManager.cs create mode 100644 sdk/src/Services/MailManager/MailManager.sln create mode 100644 sdk/src/Services/MailManager/Properties/AssemblyInfo.cs create mode 100644 sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net35.csproj create mode 100644 sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net45.csproj create mode 100644 sdk/test/Services/MailManager/UnitTests/Generated/Endpoints/MailManagerEndpointProviderTests.cs diff --git a/README.md b/README.md index 1c8511f02c6a..1596c829d1a4 100644 --- a/README.md +++ b/README.md @@ -544,6 +544,8 @@ Unit tests can be found in the **AWSSDK.UnitTests** project. * Amazon Machine Learning is a service that makes it easy for developers of all skill levels to use machine learning technology. * [AWSSDK.Macie2](https://www.nuget.org/packages/AWSSDK.Macie2/) * This release introduces a new major version of the Amazon Macie API. You can use this version of the API to develop tools and applications that interact with the new Amazon Macie. +* [AWSSDK.MailManager](https://www.nuget.org/packages/AWSSDK.MailManager/) + * This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control. * [AWSSDK.MainframeModernization](https://www.nuget.org/packages/AWSSDK.MainframeModernization/) * AWS Mainframe Modernization service is a managed mainframe service and set of tools for planning, migrating, modernizing, and running mainframe workloads on AWS * [AWSSDK.ManagedBlockchain](https://www.nuget.org/packages/AWSSDK.ManagedBlockchain/) diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.api.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.api.json new file mode 100644 index 000000000000..0f80d0d5e38a --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.api.json @@ -0,0 +1,2815 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2023-10-17", + "endpointPrefix":"mail-manager", + "jsonVersion":"1.0", + "protocol":"json", + "protocols":["json"], + "serviceFullName":"MailManager", + "serviceId":"MailManager", + "signatureVersion":"v4", + "signingName":"ses", + "targetPrefix":"MailManagerSvc", + "uid":"mailmanager-2023-10-17" + }, + "operations":{ + "CreateAddonInstance":{ + "name":"CreateAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAddonInstanceRequest"}, + "output":{"shape":"CreateAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "CreateAddonSubscription":{ + "name":"CreateAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAddonSubscriptionRequest"}, + "output":{"shape":"CreateAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "CreateArchive":{ + "name":"CreateArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateArchiveRequest"}, + "output":{"shape":"CreateArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "CreateIngressPoint":{ + "name":"CreateIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateIngressPointRequest"}, + "output":{"shape":"CreateIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "CreateRelay":{ + "name":"CreateRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRelayRequest"}, + "output":{"shape":"CreateRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "CreateRuleSet":{ + "name":"CreateRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRuleSetRequest"}, + "output":{"shape":"CreateRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "CreateTrafficPolicy":{ + "name":"CreateTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTrafficPolicyRequest"}, + "output":{"shape":"CreateTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "DeleteAddonInstance":{ + "name":"DeleteAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAddonInstanceRequest"}, + "output":{"shape":"DeleteAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "DeleteAddonSubscription":{ + "name":"DeleteAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAddonSubscriptionRequest"}, + "output":{"shape":"DeleteAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "DeleteArchive":{ + "name":"DeleteArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteArchiveRequest"}, + "output":{"shape":"DeleteArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "DeleteIngressPoint":{ + "name":"DeleteIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteIngressPointRequest"}, + "output":{"shape":"DeleteIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "DeleteRelay":{ + "name":"DeleteRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRelayRequest"}, + "output":{"shape":"DeleteRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "DeleteRuleSet":{ + "name":"DeleteRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRuleSetRequest"}, + "output":{"shape":"DeleteRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "DeleteTrafficPolicy":{ + "name":"DeleteTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTrafficPolicyRequest"}, + "output":{"shape":"DeleteTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "GetAddonInstance":{ + "name":"GetAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAddonInstanceRequest"}, + "output":{"shape":"GetAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetAddonSubscription":{ + "name":"GetAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAddonSubscriptionRequest"}, + "output":{"shape":"GetAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetArchive":{ + "name":"GetArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveRequest"}, + "output":{"shape":"GetArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetArchiveExport":{ + "name":"GetArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveExportRequest"}, + "output":{"shape":"GetArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetArchiveMessage":{ + "name":"GetArchiveMessage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveMessageRequest"}, + "output":{"shape":"GetArchiveMessageResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetArchiveMessageContent":{ + "name":"GetArchiveMessageContent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveMessageContentRequest"}, + "output":{"shape":"GetArchiveMessageContentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetArchiveSearch":{ + "name":"GetArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveSearchRequest"}, + "output":{"shape":"GetArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetArchiveSearchResults":{ + "name":"GetArchiveSearchResults", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveSearchResultsRequest"}, + "output":{"shape":"GetArchiveSearchResultsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetIngressPoint":{ + "name":"GetIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIngressPointRequest"}, + "output":{"shape":"GetIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetRelay":{ + "name":"GetRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRelayRequest"}, + "output":{"shape":"GetRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetRuleSet":{ + "name":"GetRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRuleSetRequest"}, + "output":{"shape":"GetRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetTrafficPolicy":{ + "name":"GetTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTrafficPolicyRequest"}, + "output":{"shape":"GetTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListAddonInstances":{ + "name":"ListAddonInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAddonInstancesRequest"}, + "output":{"shape":"ListAddonInstancesResponse"}, + "errors":[ + {"shape":"ValidationException"} + ] + }, + "ListAddonSubscriptions":{ + "name":"ListAddonSubscriptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAddonSubscriptionsRequest"}, + "output":{"shape":"ListAddonSubscriptionsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ] + }, + "ListArchiveExports":{ + "name":"ListArchiveExports", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchiveExportsRequest"}, + "output":{"shape":"ListArchiveExportsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListArchiveSearches":{ + "name":"ListArchiveSearches", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchiveSearchesRequest"}, + "output":{"shape":"ListArchiveSearchesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListArchives":{ + "name":"ListArchives", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchivesRequest"}, + "output":{"shape":"ListArchivesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListIngressPoints":{ + "name":"ListIngressPoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListIngressPointsRequest"}, + "output":{"shape":"ListIngressPointsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ] + }, + "ListRelays":{ + "name":"ListRelays", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRelaysRequest"}, + "output":{"shape":"ListRelaysResponse"}, + "errors":[ + {"shape":"ValidationException"} + ] + }, + "ListRuleSets":{ + "name":"ListRuleSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRuleSetsRequest"}, + "output":{"shape":"ListRuleSetsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListTrafficPolicies":{ + "name":"ListTrafficPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTrafficPoliciesRequest"}, + "output":{"shape":"ListTrafficPoliciesResponse"}, + "errors":[ + {"shape":"ValidationException"} + ] + }, + "StartArchiveExport":{ + "name":"StartArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartArchiveExportRequest"}, + "output":{"shape":"StartArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, + "StartArchiveSearch":{ + "name":"StartArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartArchiveSearchRequest"}, + "output":{"shape":"StartArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, + "StopArchiveExport":{ + "name":"StopArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopArchiveExportRequest"}, + "output":{"shape":"StopArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "StopArchiveSearch":{ + "name":"StopArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopArchiveSearchRequest"}, + "output":{"shape":"StopArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "UpdateArchive":{ + "name":"UpdateArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateArchiveRequest"}, + "output":{"shape":"UpdateArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "UpdateIngressPoint":{ + "name":"UpdateIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateIngressPointRequest"}, + "output":{"shape":"UpdateIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "UpdateRelay":{ + "name":"UpdateRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRelayRequest"}, + "output":{"shape":"UpdateRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "UpdateRuleSet":{ + "name":"UpdateRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRuleSetRequest"}, + "output":{"shape":"UpdateRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "UpdateTrafficPolicy":{ + "name":"UpdateTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTrafficPolicyRequest"}, + "output":{"shape":"UpdateTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + } + }, + "shapes":{ + "AcceptAction":{ + "type":"string", + "enum":[ + "ALLOW", + "DENY" + ] + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ActionFailurePolicy":{ + "type":"string", + "enum":[ + "CONTINUE", + "DROP" + ] + }, + "AddHeaderAction":{ + "type":"structure", + "required":[ + "HeaderName", + "HeaderValue" + ], + "members":{ + "HeaderName":{"shape":"HeaderName"}, + "HeaderValue":{"shape":"HeaderValue"} + } + }, + "AddonInstance":{ + "type":"structure", + "members":{ + "AddonInstanceArn":{"shape":"AddonInstanceArn"}, + "AddonInstanceId":{"shape":"AddonInstanceId"}, + "AddonName":{"shape":"AddonName"}, + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"}, + "CreatedTimestamp":{"shape":"Timestamp"} + } + }, + "AddonInstanceArn":{"type":"string"}, + "AddonInstanceId":{ + "type":"string", + "max":67, + "min":4, + "pattern":"^ai-[a-zA-Z0-9]{1,64}$" + }, + "AddonInstances":{ + "type":"list", + "member":{"shape":"AddonInstance"} + }, + "AddonName":{"type":"string"}, + "AddonSubscription":{ + "type":"structure", + "members":{ + "AddonName":{"shape":"AddonName"}, + "AddonSubscriptionArn":{"shape":"AddonSubscriptionArn"}, + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"}, + "CreatedTimestamp":{"shape":"Timestamp"} + } + }, + "AddonSubscriptionArn":{"type":"string"}, + "AddonSubscriptionId":{ + "type":"string", + "max":67, + "min":4, + "pattern":"^as-[a-zA-Z0-9]{1,64}$" + }, + "AddonSubscriptions":{ + "type":"list", + "member":{"shape":"AddonSubscription"} + }, + "Analysis":{ + "type":"structure", + "required":[ + "Analyzer", + "ResultField" + ], + "members":{ + "Analyzer":{"shape":"AnalyzerArn"}, + "ResultField":{"shape":"ResultField"} + } + }, + "AnalyzerArn":{ + "type":"string", + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "Archive":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveIdString"}, + "ArchiveName":{"shape":"ArchiveNameString"}, + "ArchiveState":{"shape":"ArchiveState"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"} + } + }, + "ArchiveAction":{ + "type":"structure", + "required":["TargetArchive"], + "members":{ + "ActionFailurePolicy":{"shape":"ActionFailurePolicy"}, + "TargetArchive":{"shape":"NameOrArn"} + } + }, + "ArchiveArn":{"type":"string"}, + "ArchiveBooleanEmailAttribute":{ + "type":"string", + "enum":["HAS_ATTACHMENTS"] + }, + "ArchiveBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{"shape":"ArchiveBooleanToEvaluate"}, + "Operator":{"shape":"ArchiveBooleanOperator"} + } + }, + "ArchiveBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "ArchiveBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"ArchiveBooleanEmailAttribute"} + }, + "union":true + }, + "ArchiveFilterCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{"shape":"ArchiveBooleanExpression"}, + "StringExpression":{"shape":"ArchiveStringExpression"} + }, + "union":true + }, + "ArchiveFilterConditions":{ + "type":"list", + "member":{"shape":"ArchiveFilterCondition"}, + "max":10, + "min":0 + }, + "ArchiveFilters":{ + "type":"structure", + "members":{ + "Include":{"shape":"ArchiveFilterConditions"}, + "Unless":{"shape":"ArchiveFilterConditions"} + } + }, + "ArchiveId":{ + "type":"string", + "max":66, + "min":3, + "pattern":"^a-[\\w]{1,64}$" + }, + "ArchiveIdString":{ + "type":"string", + "max":66, + "min":1 + }, + "ArchiveNameString":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$" + }, + "ArchiveRetention":{ + "type":"structure", + "members":{ + "RetentionPeriod":{"shape":"RetentionPeriod"} + }, + "union":true + }, + "ArchiveState":{ + "type":"string", + "enum":[ + "ACTIVE", + "PENDING_DELETION" + ] + }, + "ArchiveStringEmailAttribute":{ + "type":"string", + "enum":[ + "TO", + "FROM", + "CC", + "SUBJECT" + ] + }, + "ArchiveStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{"shape":"ArchiveStringToEvaluate"}, + "Operator":{"shape":"ArchiveStringOperator"}, + "Values":{"shape":"StringValueList"} + } + }, + "ArchiveStringOperator":{ + "type":"string", + "enum":["CONTAINS"] + }, + "ArchiveStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"ArchiveStringEmailAttribute"} + }, + "union":true + }, + "ArchivedMessageId":{"type":"string"}, + "ArchivesList":{ + "type":"list", + "member":{"shape":"Archive"} + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "CreateAddonInstanceRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"}, + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "Tags":{"shape":"TagList"} + } + }, + "CreateAddonInstanceResponse":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{"shape":"AddonInstanceId"} + } + }, + "CreateAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonName"], + "members":{ + "AddonName":{"shape":"AddonName"}, + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "Tags":{"shape":"TagList"} + } + }, + "CreateAddonSubscriptionResponse":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"} + } + }, + "CreateArchiveRequest":{ + "type":"structure", + "required":["ArchiveName"], + "members":{ + "ArchiveName":{"shape":"ArchiveNameString"}, + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "KmsKeyArn":{"shape":"KmsKeyArn"}, + "Retention":{"shape":"ArchiveRetention"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateArchiveResponse":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveIdString"} + } + }, + "CreateIngressPointRequest":{ + "type":"structure", + "required":[ + "IngressPointName", + "RuleSetId", + "TrafficPolicyId", + "Type" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "IngressPointConfiguration":{"shape":"IngressPointConfiguration"}, + "IngressPointName":{"shape":"IngressPointName"}, + "RuleSetId":{"shape":"RuleSetId"}, + "Tags":{"shape":"TagList"}, + "TrafficPolicyId":{"shape":"TrafficPolicyId"}, + "Type":{"shape":"IngressPointType"} + } + }, + "CreateIngressPointResponse":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{"shape":"IngressPointId"} + } + }, + "CreateRelayRequest":{ + "type":"structure", + "required":[ + "Authentication", + "RelayName", + "ServerName", + "ServerPort" + ], + "members":{ + "Authentication":{"shape":"RelayAuthentication"}, + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "RelayName":{"shape":"RelayName"}, + "ServerName":{"shape":"RelayServerName"}, + "ServerPort":{"shape":"RelayServerPort"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateRelayResponse":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{"shape":"RelayId"} + } + }, + "CreateRuleSetRequest":{ + "type":"structure", + "required":[ + "RuleSetName", + "Rules" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "RuleSetName":{"shape":"RuleSetName"}, + "Rules":{"shape":"Rules"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateRuleSetResponse":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{"shape":"RuleSetId"} + } + }, + "CreateTrafficPolicyRequest":{ + "type":"structure", + "required":[ + "DefaultAction", + "PolicyStatements", + "TrafficPolicyName" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "DefaultAction":{"shape":"AcceptAction"}, + "MaxMessageSizeBytes":{"shape":"MaxMessageSizeBytes"}, + "PolicyStatements":{"shape":"PolicyStatementList"}, + "Tags":{"shape":"TagList"}, + "TrafficPolicyName":{"shape":"TrafficPolicyName"} + } + }, + "CreateTrafficPolicyResponse":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{"shape":"TrafficPolicyId"} + } + }, + "DeleteAddonInstanceRequest":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{"shape":"AddonInstanceId"} + } + }, + "DeleteAddonInstanceResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"} + } + }, + "DeleteAddonSubscriptionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveIdString"} + } + }, + "DeleteArchiveResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{"shape":"IngressPointId"} + } + }, + "DeleteIngressPointResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{"shape":"RelayId"} + } + }, + "DeleteRelayResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{"shape":"RuleSetId"} + } + }, + "DeleteRuleSetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{"shape":"TrafficPolicyId"} + } + }, + "DeleteTrafficPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "DeliverToMailboxAction":{ + "type":"structure", + "required":[ + "MailboxArn", + "RoleArn" + ], + "members":{ + "ActionFailurePolicy":{"shape":"ActionFailurePolicy"}, + "MailboxArn":{"shape":"NameOrArn"}, + "RoleArn":{"shape":"IamRoleArn"} + } + }, + "Double":{ + "type":"double", + "box":true + }, + "DropAction":{ + "type":"structure", + "members":{ + } + }, + "EmailAddress":{ + "type":"string", + "max":254, + "min":0, + "pattern":"^[0-9A-Za-z@+.-]+$", + "sensitive":true + }, + "EmailReceivedHeadersList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ErrorMessage":{"type":"string"}, + "ExportDestinationConfiguration":{ + "type":"structure", + "members":{ + "S3":{"shape":"S3ExportDestinationConfiguration"} + }, + "union":true + }, + "ExportId":{ + "type":"string", + "max":64, + "min":1 + }, + "ExportMaxResults":{ + "type":"integer", + "box":true + }, + "ExportState":{ + "type":"string", + "enum":[ + "QUEUED", + "PREPROCESSING", + "PROCESSING", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "ExportStatus":{ + "type":"structure", + "members":{ + "CompletionTimestamp":{"shape":"Timestamp"}, + "ErrorMessage":{"shape":"ErrorMessage"}, + "State":{"shape":"ExportState"}, + "SubmissionTimestamp":{"shape":"Timestamp"} + } + }, + "ExportSummary":{ + "type":"structure", + "members":{ + "ExportId":{"shape":"ExportId"}, + "Status":{"shape":"ExportStatus"} + } + }, + "ExportSummaryList":{ + "type":"list", + "member":{"shape":"ExportSummary"} + }, + "GetAddonInstanceRequest":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{"shape":"AddonInstanceId"} + } + }, + "GetAddonInstanceResponse":{ + "type":"structure", + "members":{ + "AddonInstanceArn":{"shape":"AddonInstanceArn"}, + "AddonName":{"shape":"AddonName"}, + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"}, + "CreatedTimestamp":{"shape":"Timestamp"} + } + }, + "GetAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{"shape":"AddonSubscriptionId"} + } + }, + "GetAddonSubscriptionResponse":{ + "type":"structure", + "members":{ + "AddonName":{"shape":"AddonName"}, + "AddonSubscriptionArn":{"shape":"AddonSubscriptionArn"}, + "CreatedTimestamp":{"shape":"Timestamp"} + } + }, + "GetArchiveExportRequest":{ + "type":"structure", + "required":["ExportId"], + "members":{ + "ExportId":{"shape":"ExportId"} + } + }, + "GetArchiveExportResponse":{ + "type":"structure", + "members":{ + "ArchiveId":{"shape":"ArchiveId"}, + "ExportDestinationConfiguration":{"shape":"ExportDestinationConfiguration"}, + "Filters":{"shape":"ArchiveFilters"}, + "FromTimestamp":{"shape":"Timestamp"}, + "MaxResults":{"shape":"ExportMaxResults"}, + "Status":{"shape":"ExportStatus"}, + "ToTimestamp":{"shape":"Timestamp"} + } + }, + "GetArchiveMessageContentRequest":{ + "type":"structure", + "required":["ArchivedMessageId"], + "members":{ + "ArchivedMessageId":{"shape":"ArchivedMessageId"} + } + }, + "GetArchiveMessageContentResponse":{ + "type":"structure", + "members":{ + "Body":{"shape":"MessageBody"} + } + }, + "GetArchiveMessageRequest":{ + "type":"structure", + "required":["ArchivedMessageId"], + "members":{ + "ArchivedMessageId":{"shape":"ArchivedMessageId"} + } + }, + "GetArchiveMessageResponse":{ + "type":"structure", + "members":{ + "MessageDownloadLink":{"shape":"S3PresignedURL"} + } + }, + "GetArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveIdString"} + } + }, + "GetArchiveResponse":{ + "type":"structure", + "required":[ + "ArchiveArn", + "ArchiveId", + "ArchiveName", + "ArchiveState", + "Retention" + ], + "members":{ + "ArchiveArn":{"shape":"ArchiveArn"}, + "ArchiveId":{"shape":"ArchiveIdString"}, + "ArchiveName":{"shape":"ArchiveNameString"}, + "ArchiveState":{"shape":"ArchiveState"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "KmsKeyArn":{"shape":"KmsKeyArn"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "Retention":{"shape":"ArchiveRetention"} + } + }, + "GetArchiveSearchRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{"shape":"SearchId"} + } + }, + "GetArchiveSearchResponse":{ + "type":"structure", + "members":{ + "ArchiveId":{"shape":"ArchiveId"}, + "Filters":{"shape":"ArchiveFilters"}, + "FromTimestamp":{"shape":"Timestamp"}, + "MaxResults":{"shape":"SearchMaxResults"}, + "Status":{"shape":"SearchStatus"}, + "ToTimestamp":{"shape":"Timestamp"} + } + }, + "GetArchiveSearchResultsRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{"shape":"SearchId"} + } + }, + "GetArchiveSearchResultsResponse":{ + "type":"structure", + "members":{ + "Rows":{"shape":"RowsList"} + } + }, + "GetIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{"shape":"IngressPointId"} + } + }, + "GetIngressPointResponse":{ + "type":"structure", + "required":[ + "IngressPointId", + "IngressPointName" + ], + "members":{ + "ARecord":{"shape":"IngressPointARecord"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "IngressPointArn":{"shape":"IngressPointArn"}, + "IngressPointAuthConfiguration":{"shape":"IngressPointAuthConfiguration"}, + "IngressPointId":{"shape":"IngressPointId"}, + "IngressPointName":{"shape":"IngressPointName"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "RuleSetId":{"shape":"RuleSetId"}, + "Status":{"shape":"IngressPointStatus"}, + "TrafficPolicyId":{"shape":"TrafficPolicyId"}, + "Type":{"shape":"IngressPointType"} + } + }, + "GetRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{"shape":"RelayId"} + } + }, + "GetRelayResponse":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "Authentication":{"shape":"RelayAuthentication"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastModifiedTimestamp":{"shape":"Timestamp"}, + "RelayArn":{"shape":"RelayArn"}, + "RelayId":{"shape":"RelayId"}, + "RelayName":{"shape":"RelayName"}, + "ServerName":{"shape":"RelayServerName"}, + "ServerPort":{"shape":"RelayServerPort"} + } + }, + "GetRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{"shape":"RuleSetId"} + } + }, + "GetRuleSetResponse":{ + "type":"structure", + "required":[ + "CreatedDate", + "LastModificationDate", + "RuleSetArn", + "RuleSetId", + "RuleSetName", + "Rules" + ], + "members":{ + "CreatedDate":{"shape":"Timestamp"}, + "LastModificationDate":{"shape":"Timestamp"}, + "RuleSetArn":{"shape":"RuleSetArn"}, + "RuleSetId":{"shape":"RuleSetId"}, + "RuleSetName":{"shape":"RuleSetName"}, + "Rules":{"shape":"Rules"} + } + }, + "GetTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{"shape":"TrafficPolicyId"} + } + }, + "GetTrafficPolicyResponse":{ + "type":"structure", + "required":[ + "TrafficPolicyId", + "TrafficPolicyName" + ], + "members":{ + "CreatedTimestamp":{"shape":"Timestamp"}, + "DefaultAction":{"shape":"AcceptAction"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "MaxMessageSizeBytes":{"shape":"MaxMessageSizeBytes"}, + "PolicyStatements":{"shape":"PolicyStatementList"}, + "TrafficPolicyArn":{"shape":"TrafficPolicyArn"}, + "TrafficPolicyId":{"shape":"TrafficPolicyId"}, + "TrafficPolicyName":{"shape":"TrafficPolicyName"} + } + }, + "HeaderName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[xX]\\-[a-zA-Z0-9\\-]+$" + }, + "HeaderValue":{ + "type":"string", + "max":128, + "min":1 + }, + "IamRoleArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "IdOrArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "IdempotencyToken":{ + "type":"string", + "max":128, + "min":1 + }, + "IngressAnalysis":{ + "type":"structure", + "required":[ + "Analyzer", + "ResultField" + ], + "members":{ + "Analyzer":{"shape":"AnalyzerArn"}, + "ResultField":{"shape":"ResultField"} + } + }, + "IngressBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{"shape":"IngressBooleanToEvaluate"}, + "Operator":{"shape":"IngressBooleanOperator"} + } + }, + "IngressBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "IngressBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Analysis":{"shape":"IngressAnalysis"} + }, + "union":true + }, + "IngressIpOperator":{ + "type":"string", + "enum":[ + "CIDR_MATCHES", + "NOT_CIDR_MATCHES" + ] + }, + "IngressIpToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"IngressIpv4Attribute"} + }, + "union":true + }, + "IngressIpv4Attribute":{ + "type":"string", + "enum":["SENDER_IP"] + }, + "IngressIpv4Expression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{"shape":"IngressIpToEvaluate"}, + "Operator":{"shape":"IngressIpOperator"}, + "Values":{"shape":"Ipv4Cidrs"} + } + }, + "IngressPoint":{ + "type":"structure", + "required":[ + "IngressPointId", + "IngressPointName", + "Status", + "Type" + ], + "members":{ + "ARecord":{"shape":"IngressPointARecord"}, + "IngressPointId":{"shape":"IngressPointId"}, + "IngressPointName":{"shape":"IngressPointName"}, + "Status":{"shape":"IngressPointStatus"}, + "Type":{"shape":"IngressPointType"} + } + }, + "IngressPointARecord":{"type":"string"}, + "IngressPointArn":{"type":"string"}, + "IngressPointAuthConfiguration":{ + "type":"structure", + "members":{ + "IngressPointPasswordConfiguration":{"shape":"IngressPointPasswordConfiguration"}, + "SecretArn":{"shape":"SecretArn"} + } + }, + "IngressPointConfiguration":{ + "type":"structure", + "members":{ + "SecretArn":{"shape":"SecretArn"}, + "SmtpPassword":{"shape":"SmtpPassword"} + }, + "union":true + }, + "IngressPointId":{ + "type":"string", + "max":100, + "min":1 + }, + "IngressPointName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"^[A-Za-z0-9_\\-]+$" + }, + "IngressPointPasswordConfiguration":{ + "type":"structure", + "members":{ + "PreviousSmtpPasswordExpiryTimestamp":{"shape":"Timestamp"}, + "PreviousSmtpPasswordVersion":{"shape":"String"}, + "SmtpPasswordVersion":{"shape":"String"} + } + }, + "IngressPointStatus":{ + "type":"string", + "enum":[ + "PROVISIONING", + "DEPROVISIONING", + "UPDATING", + "ACTIVE", + "CLOSED", + "FAILED" + ] + }, + "IngressPointStatusToUpdate":{ + "type":"string", + "enum":[ + "ACTIVE", + "CLOSED" + ] + }, + "IngressPointType":{ + "type":"string", + "enum":[ + "OPEN", + "AUTH" + ] + }, + "IngressPointsList":{ + "type":"list", + "member":{"shape":"IngressPoint"} + }, + "IngressStringEmailAttribute":{ + "type":"string", + "enum":["RECIPIENT"] + }, + "IngressStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{"shape":"IngressStringToEvaluate"}, + "Operator":{"shape":"IngressStringOperator"}, + "Values":{"shape":"StringList"} + } + }, + "IngressStringOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS" + ] + }, + "IngressStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"IngressStringEmailAttribute"} + }, + "union":true + }, + "IngressTlsAttribute":{ + "type":"string", + "enum":["TLS_PROTOCOL"] + }, + "IngressTlsProtocolAttribute":{ + "type":"string", + "enum":[ + "TLS1_2", + "TLS1_3" + ] + }, + "IngressTlsProtocolExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Value" + ], + "members":{ + "Evaluate":{"shape":"IngressTlsProtocolToEvaluate"}, + "Operator":{"shape":"IngressTlsProtocolOperator"}, + "Value":{"shape":"IngressTlsProtocolAttribute"} + } + }, + "IngressTlsProtocolOperator":{ + "type":"string", + "enum":[ + "MINIMUM_TLS_VERSION", + "IS" + ] + }, + "IngressTlsProtocolToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"IngressTlsAttribute"} + }, + "union":true + }, + "Integer":{ + "type":"integer", + "box":true + }, + "Ipv4Cidr":{ + "type":"string", + "pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/([0-9]|[12][0-9]|3[0-2])$" + }, + "Ipv4Cidrs":{ + "type":"list", + "member":{"shape":"Ipv4Cidr"} + }, + "KmsKeyArn":{ + "type":"string", + "pattern":"^arn:aws(|-cn|-us-gov):kms:[a-z0-9-]{1,20}:[0-9]{12}:(key|alias)/.+$" + }, + "KmsKeyId":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^[a-zA-Z0-9-:/]+$" + }, + "ListAddonInstancesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListAddonInstancesResponse":{ + "type":"structure", + "members":{ + "AddonInstances":{"shape":"AddonInstances"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListAddonSubscriptionsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListAddonSubscriptionsResponse":{ + "type":"structure", + "members":{ + "AddonSubscriptions":{"shape":"AddonSubscriptions"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListArchiveExportsRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveId"}, + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListArchiveExportsResponse":{ + "type":"structure", + "members":{ + "Exports":{"shape":"ExportSummaryList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListArchiveSearchesRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveId"}, + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListArchiveSearchesResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "Searches":{"shape":"SearchSummaryList"} + } + }, + "ListArchivesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListArchivesResponse":{ + "type":"structure", + "required":["Archives"], + "members":{ + "Archives":{"shape":"ArchivesList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListIngressPointsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListIngressPointsResponse":{ + "type":"structure", + "members":{ + "IngressPoints":{"shape":"IngressPointsList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListRelaysRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"Integer"} + } + }, + "ListRelaysResponse":{ + "type":"structure", + "required":["Relays"], + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "Relays":{"shape":"Relays"} + } + }, + "ListRuleSetsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListRuleSetsResponse":{ + "type":"structure", + "required":["RuleSets"], + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "RuleSets":{"shape":"RuleSets"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"TaggableResourceArn"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{"shape":"TagList"} + } + }, + "ListTrafficPoliciesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListTrafficPoliciesResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "TrafficPolicies":{"shape":"TrafficPolicyList"} + } + }, + "MailFrom":{ + "type":"string", + "enum":[ + "REPLACE", + "PRESERVE" + ] + }, + "MaxMessageSizeBytes":{ + "type":"integer", + "box":true, + "min":1 + }, + "MessageBody":{ + "type":"structure", + "members":{ + "Html":{"shape":"String"}, + "MessageMalformed":{"shape":"Boolean"}, + "Text":{"shape":"String"} + } + }, + "NameOrArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "NoAuthentication":{ + "type":"structure", + "members":{ + } + }, + "PageSize":{ + "type":"integer", + "box":true, + "max":50, + "min":1 + }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1 + }, + "PolicyCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{"shape":"IngressBooleanExpression"}, + "IpExpression":{"shape":"IngressIpv4Expression"}, + "StringExpression":{"shape":"IngressStringExpression"}, + "TlsExpression":{"shape":"IngressTlsProtocolExpression"} + }, + "union":true + }, + "PolicyConditions":{ + "type":"list", + "member":{"shape":"PolicyCondition"}, + "min":1 + }, + "PolicyStatement":{ + "type":"structure", + "required":[ + "Action", + "Conditions" + ], + "members":{ + "Action":{"shape":"AcceptAction"}, + "Conditions":{"shape":"PolicyConditions"} + } + }, + "PolicyStatementList":{ + "type":"list", + "member":{"shape":"PolicyStatement"} + }, + "Recipients":{ + "type":"list", + "member":{"shape":"EmailAddress"}, + "max":100, + "min":1 + }, + "Relay":{ + "type":"structure", + "members":{ + "LastModifiedTimestamp":{"shape":"Timestamp"}, + "RelayId":{"shape":"RelayId"}, + "RelayName":{"shape":"RelayName"} + } + }, + "RelayAction":{ + "type":"structure", + "required":["Relay"], + "members":{ + "ActionFailurePolicy":{"shape":"ActionFailurePolicy"}, + "MailFrom":{"shape":"MailFrom"}, + "Relay":{"shape":"IdOrArn"} + } + }, + "RelayArn":{"type":"string"}, + "RelayAuthentication":{ + "type":"structure", + "members":{ + "NoAuthentication":{"shape":"NoAuthentication"}, + "SecretArn":{"shape":"SecretArn"} + }, + "union":true + }, + "RelayId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-]+$" + }, + "RelayName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-_]+$" + }, + "RelayServerName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-\\.]+$" + }, + "RelayServerPort":{ + "type":"integer", + "box":true, + "max":65535, + "min":1 + }, + "Relays":{ + "type":"list", + "member":{"shape":"Relay"} + }, + "ReplaceRecipientAction":{ + "type":"structure", + "members":{ + "ReplaceWith":{"shape":"Recipients"} + } + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResultField":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[\\sa-zA-Z0-9_]+$" + }, + "RetentionPeriod":{ + "type":"string", + "enum":[ + "THREE_MONTHS", + "SIX_MONTHS", + "NINE_MONTHS", + "ONE_YEAR", + "EIGHTEEN_MONTHS", + "TWO_YEARS", + "THIRTY_MONTHS", + "THREE_YEARS", + "FOUR_YEARS", + "FIVE_YEARS", + "SIX_YEARS", + "SEVEN_YEARS", + "EIGHT_YEARS", + "NINE_YEARS", + "TEN_YEARS", + "PERMANENT" + ] + }, + "Row":{ + "type":"structure", + "members":{ + "ArchivedMessageId":{"shape":"ArchivedMessageId"}, + "Cc":{"shape":"String"}, + "Date":{"shape":"String"}, + "From":{"shape":"String"}, + "HasAttachments":{"shape":"Boolean"}, + "InReplyTo":{"shape":"String"}, + "MessageId":{"shape":"String"}, + "ReceivedHeaders":{"shape":"EmailReceivedHeadersList"}, + "ReceivedTimestamp":{"shape":"Timestamp"}, + "Subject":{"shape":"String"}, + "To":{"shape":"String"}, + "XMailer":{"shape":"String"}, + "XOriginalMailer":{"shape":"String"}, + "XPriority":{"shape":"String"} + } + }, + "RowsList":{ + "type":"list", + "member":{"shape":"Row"} + }, + "Rule":{ + "type":"structure", + "required":["Actions"], + "members":{ + "Actions":{"shape":"RuleActions"}, + "Conditions":{"shape":"RuleConditions"}, + "Name":{"shape":"RuleName"}, + "Unless":{"shape":"RuleConditions"} + } + }, + "RuleAction":{ + "type":"structure", + "members":{ + "AddHeader":{"shape":"AddHeaderAction"}, + "Archive":{"shape":"ArchiveAction"}, + "DeliverToMailbox":{"shape":"DeliverToMailboxAction"}, + "Drop":{"shape":"DropAction"}, + "Relay":{"shape":"RelayAction"}, + "ReplaceRecipient":{"shape":"ReplaceRecipientAction"}, + "Send":{"shape":"SendAction"}, + "WriteToS3":{"shape":"S3Action"} + }, + "union":true + }, + "RuleActions":{ + "type":"list", + "member":{"shape":"RuleAction"}, + "max":10, + "min":1 + }, + "RuleBooleanEmailAttribute":{ + "type":"string", + "enum":[ + "READ_RECEIPT_REQUESTED", + "TLS", + "TLS_WRAPPED" + ] + }, + "RuleBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{"shape":"RuleBooleanToEvaluate"}, + "Operator":{"shape":"RuleBooleanOperator"} + } + }, + "RuleBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "RuleBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"RuleBooleanEmailAttribute"} + }, + "union":true + }, + "RuleCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{"shape":"RuleBooleanExpression"}, + "DmarcExpression":{"shape":"RuleDmarcExpression"}, + "IpExpression":{"shape":"RuleIpExpression"}, + "NumberExpression":{"shape":"RuleNumberExpression"}, + "StringExpression":{"shape":"RuleStringExpression"}, + "VerdictExpression":{"shape":"RuleVerdictExpression"} + }, + "union":true + }, + "RuleConditions":{ + "type":"list", + "member":{"shape":"RuleCondition"}, + "max":10, + "min":0 + }, + "RuleDmarcExpression":{ + "type":"structure", + "required":[ + "Operator", + "Values" + ], + "members":{ + "Operator":{"shape":"RuleDmarcOperator"}, + "Values":{"shape":"RuleDmarcValueList"} + } + }, + "RuleDmarcOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS" + ] + }, + "RuleDmarcPolicy":{ + "type":"string", + "enum":[ + "NONE", + "QUARANTINE", + "REJECT" + ] + }, + "RuleDmarcValueList":{ + "type":"list", + "member":{"shape":"RuleDmarcPolicy"}, + "max":10, + "min":1 + }, + "RuleIpEmailAttribute":{ + "type":"string", + "enum":["SOURCE_IP"] + }, + "RuleIpExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{"shape":"RuleIpToEvaluate"}, + "Operator":{"shape":"RuleIpOperator"}, + "Values":{"shape":"RuleIpValueList"} + } + }, + "RuleIpOperator":{ + "type":"string", + "enum":[ + "CIDR_MATCHES", + "NOT_CIDR_MATCHES" + ] + }, + "RuleIpStringValue":{ + "type":"string", + "max":18, + "min":1, + "pattern":"^(([0-9]|.|/)*)$" + }, + "RuleIpToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"RuleIpEmailAttribute"} + }, + "union":true + }, + "RuleIpValueList":{ + "type":"list", + "member":{"shape":"RuleIpStringValue"}, + "max":10, + "min":1 + }, + "RuleName":{ + "type":"string", + "max":32, + "min":1, + "pattern":"^[a-zA-Z0-9_.-]+$" + }, + "RuleNumberEmailAttribute":{ + "type":"string", + "enum":["MESSAGE_SIZE"] + }, + "RuleNumberExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Value" + ], + "members":{ + "Evaluate":{"shape":"RuleNumberToEvaluate"}, + "Operator":{"shape":"RuleNumberOperator"}, + "Value":{"shape":"Double"} + } + }, + "RuleNumberOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "LESS_THAN", + "GREATER_THAN", + "LESS_THAN_OR_EQUAL", + "GREATER_THAN_OR_EQUAL" + ] + }, + "RuleNumberToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"RuleNumberEmailAttribute"} + }, + "union":true + }, + "RuleSet":{ + "type":"structure", + "members":{ + "LastModificationDate":{"shape":"Timestamp"}, + "RuleSetId":{"shape":"RuleSetId"}, + "RuleSetName":{"shape":"RuleSetName"} + } + }, + "RuleSetArn":{"type":"string"}, + "RuleSetId":{ + "type":"string", + "max":100, + "min":1 + }, + "RuleSetName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9_.-]+$" + }, + "RuleSets":{ + "type":"list", + "member":{"shape":"RuleSet"} + }, + "RuleStringEmailAttribute":{ + "type":"string", + "enum":[ + "MAIL_FROM", + "HELO", + "RECIPIENT", + "SENDER", + "FROM", + "SUBJECT", + "TO", + "CC" + ] + }, + "RuleStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{"shape":"RuleStringToEvaluate"}, + "Operator":{"shape":"RuleStringOperator"}, + "Values":{"shape":"RuleStringList"} + } + }, + "RuleStringList":{ + "type":"list", + "member":{"shape":"RuleStringValue"}, + "max":10, + "min":1 + }, + "RuleStringOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS" + ] + }, + "RuleStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"RuleStringEmailAttribute"} + }, + "union":true + }, + "RuleStringValue":{ + "type":"string", + "max":4096, + "min":1 + }, + "RuleVerdict":{ + "type":"string", + "enum":[ + "PASS", + "FAIL", + "GRAY", + "PROCESSING_FAILED" + ] + }, + "RuleVerdictAttribute":{ + "type":"string", + "enum":[ + "SPF", + "DKIM" + ] + }, + "RuleVerdictExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{"shape":"RuleVerdictToEvaluate"}, + "Operator":{"shape":"RuleVerdictOperator"}, + "Values":{"shape":"RuleVerdictValueList"} + } + }, + "RuleVerdictOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS" + ] + }, + "RuleVerdictToEvaluate":{ + "type":"structure", + "members":{ + "Analysis":{"shape":"Analysis"}, + "Attribute":{"shape":"RuleVerdictAttribute"} + }, + "union":true + }, + "RuleVerdictValueList":{ + "type":"list", + "member":{"shape":"RuleVerdict"}, + "max":10, + "min":1 + }, + "Rules":{ + "type":"list", + "member":{"shape":"Rule"}, + "max":40, + "min":0 + }, + "S3Action":{ + "type":"structure", + "required":[ + "RoleArn", + "S3Bucket" + ], + "members":{ + "ActionFailurePolicy":{"shape":"ActionFailurePolicy"}, + "RoleArn":{"shape":"IamRoleArn"}, + "S3Bucket":{"shape":"S3Bucket"}, + "S3Prefix":{"shape":"S3Prefix"}, + "S3SseKmsKeyId":{"shape":"KmsKeyId"} + } + }, + "S3Bucket":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^[a-zA-Z0-9.-]+$" + }, + "S3ExportDestinationConfiguration":{ + "type":"structure", + "members":{ + "S3Location":{"shape":"S3Location"} + } + }, + "S3Location":{ + "type":"string", + "pattern":"^s3://[a-zA-Z0-9.-]{3,63}(/[a-zA-Z0-9!_.*'()/-]*)*$" + }, + "S3Prefix":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^[a-zA-Z0-9!_.*'()/-]+$" + }, + "S3PresignedURL":{"type":"string"}, + "SearchId":{ + "type":"string", + "max":64, + "min":1 + }, + "SearchMaxResults":{ + "type":"integer", + "box":true, + "max":1000, + "min":0 + }, + "SearchState":{ + "type":"string", + "enum":[ + "QUEUED", + "RUNNING", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "SearchStatus":{ + "type":"structure", + "members":{ + "CompletionTimestamp":{"shape":"Timestamp"}, + "ErrorMessage":{"shape":"ErrorMessage"}, + "State":{"shape":"SearchState"}, + "SubmissionTimestamp":{"shape":"Timestamp"} + } + }, + "SearchSummary":{ + "type":"structure", + "members":{ + "SearchId":{"shape":"SearchId"}, + "Status":{"shape":"SearchStatus"} + } + }, + "SearchSummaryList":{ + "type":"list", + "member":{"shape":"SearchSummary"} + }, + "SecretArn":{ + "type":"string", + "pattern":"^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$" + }, + "SendAction":{ + "type":"structure", + "required":["RoleArn"], + "members":{ + "ActionFailurePolicy":{"shape":"ActionFailurePolicy"}, + "RoleArn":{"shape":"IamRoleArn"} + } + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "SmtpPassword":{ + "type":"string", + "max":64, + "min":8, + "pattern":"^[A-Za-z0-9!@#$%^&*()_+\\-=\\[\\]{}|.,?]+$", + "sensitive":true + }, + "StartArchiveExportRequest":{ + "type":"structure", + "required":[ + "ArchiveId", + "ExportDestinationConfiguration", + "FromTimestamp", + "ToTimestamp" + ], + "members":{ + "ArchiveId":{"shape":"ArchiveId"}, + "ExportDestinationConfiguration":{"shape":"ExportDestinationConfiguration"}, + "Filters":{"shape":"ArchiveFilters"}, + "FromTimestamp":{"shape":"Timestamp"}, + "MaxResults":{"shape":"ExportMaxResults"}, + "ToTimestamp":{"shape":"Timestamp"} + } + }, + "StartArchiveExportResponse":{ + "type":"structure", + "members":{ + "ExportId":{"shape":"ExportId"} + } + }, + "StartArchiveSearchRequest":{ + "type":"structure", + "required":[ + "ArchiveId", + "FromTimestamp", + "MaxResults", + "ToTimestamp" + ], + "members":{ + "ArchiveId":{"shape":"ArchiveId"}, + "Filters":{"shape":"ArchiveFilters"}, + "FromTimestamp":{"shape":"Timestamp"}, + "MaxResults":{"shape":"SearchMaxResults"}, + "ToTimestamp":{"shape":"Timestamp"} + } + }, + "StartArchiveSearchResponse":{ + "type":"structure", + "members":{ + "SearchId":{"shape":"SearchId"} + } + }, + "StopArchiveExportRequest":{ + "type":"structure", + "required":["ExportId"], + "members":{ + "ExportId":{"shape":"ExportId"} + } + }, + "StopArchiveExportResponse":{ + "type":"structure", + "members":{ + } + }, + "StopArchiveSearchRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{"shape":"SearchId"} + } + }, + "StopArchiveSearchResponse":{ + "type":"structure", + "members":{ + } + }, + "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "StringValueList":{ + "type":"list", + "member":{"shape":"String"}, + "max":10, + "min":1 + }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[a-zA-Z0-9/_\\+=\\.:@\\-]+$", + "sensitive":true + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"TaggableResourceArn"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^[a-zA-Z0-9/_\\+=\\.:@\\-]*$", + "sensitive":true + }, + "TaggableResourceArn":{ + "type":"string", + "max":1011, + "min":20, + "pattern":"^arn:aws(|-cn|-us-gov):ses:[a-z0-9-]{1,20}:[0-9]{12}:(mailmanager-|addon-).+$" + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "Timestamp":{"type":"timestamp"}, + "TrafficPolicy":{ + "type":"structure", + "required":[ + "DefaultAction", + "TrafficPolicyId", + "TrafficPolicyName" + ], + "members":{ + "DefaultAction":{"shape":"AcceptAction"}, + "TrafficPolicyId":{"shape":"TrafficPolicyId"}, + "TrafficPolicyName":{"shape":"TrafficPolicyName"} + } + }, + "TrafficPolicyArn":{"type":"string"}, + "TrafficPolicyId":{ + "type":"string", + "max":100, + "min":1 + }, + "TrafficPolicyList":{ + "type":"list", + "member":{"shape":"TrafficPolicy"} + }, + "TrafficPolicyName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"^[A-Za-z0-9_\\-]+$" + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"TaggableResourceArn"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{"shape":"ArchiveIdString"}, + "ArchiveName":{"shape":"ArchiveNameString"}, + "Retention":{"shape":"ArchiveRetention"} + } + }, + "UpdateArchiveResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointConfiguration":{"shape":"IngressPointConfiguration"}, + "IngressPointId":{"shape":"IngressPointId"}, + "IngressPointName":{"shape":"IngressPointName"}, + "RuleSetId":{"shape":"RuleSetId"}, + "StatusToUpdate":{"shape":"IngressPointStatusToUpdate"}, + "TrafficPolicyId":{"shape":"TrafficPolicyId"} + } + }, + "UpdateIngressPointResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "Authentication":{"shape":"RelayAuthentication"}, + "RelayId":{"shape":"RelayId"}, + "RelayName":{"shape":"RelayName"}, + "ServerName":{"shape":"RelayServerName"}, + "ServerPort":{"shape":"RelayServerPort"} + } + }, + "UpdateRelayResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{"shape":"RuleSetId"}, + "RuleSetName":{"shape":"RuleSetName"}, + "Rules":{"shape":"Rules"} + } + }, + "UpdateRuleSetResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "DefaultAction":{"shape":"AcceptAction"}, + "MaxMessageSizeBytes":{"shape":"MaxMessageSizeBytes"}, + "PolicyStatements":{"shape":"PolicyStatementList"}, + "TrafficPolicyId":{"shape":"TrafficPolicyId"}, + "TrafficPolicyName":{"shape":"TrafficPolicyName"} + } + }, + "UpdateTrafficPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + } + } +} diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.docs.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.docs.json new file mode 100644 index 000000000000..0c559ff3395c --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.docs.json @@ -0,0 +1,1887 @@ +{ + "version": "2.0", + "service": "

AWS SES Mail Manager API

AWS SES Mail Manager API contains operations and data types that comprise the Mail Manager feature of Amazon Simple Email Service.

Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen your organization's email infrastructure, simplify email workflow management, and streamline email compliance control. To learn more, see the Mail Manager chapter in the Amazon SES Developer Guide.

", + "operations": { + "CreateAddonInstance": "

Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or traffic policy.

", + "CreateAddonSubscription": "

Creates a subscription for an Add On representing the acceptance of its terms of use and additional pricing. The subscription can then be used to create an instance for use in rule sets or traffic policies.

", + "CreateArchive": "

Creates a new email archive resource for storing and retaining emails.

", + "CreateIngressPoint": "

Provision a new ingress endpoint resource.

", + "CreateRelay": "

Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.

", + "CreateRuleSet": "

Provision a new rule set.

", + "CreateTrafficPolicy": "

Provision a new traffic policy resource.

", + "DeleteAddonInstance": "

Deletes an Add On instance.

", + "DeleteAddonSubscription": "

Deletes an Add On subscription.

", + "DeleteArchive": "

Initiates deletion of an email archive. This changes the archive state to pending deletion. In this state, no new emails can be added, and existing archived emails become inaccessible (search, export, download). The archive and all of its contents will be permanently deleted 30 days after entering the pending deletion state, regardless of the configured retention period.

", + "DeleteIngressPoint": "

Delete an ingress endpoint resource.

", + "DeleteRelay": "

Deletes an existing relay resource.

", + "DeleteRuleSet": "

Delete a rule set.

", + "DeleteTrafficPolicy": "

Delete a traffic policy resource.

", + "GetAddonInstance": "

Gets detailed information about an Add On instance.

", + "GetAddonSubscription": "

Gets detailed information about an Add On subscription.

", + "GetArchive": "

Retrieves the full details and current state of a specified email archive.

", + "GetArchiveExport": "

Retrieves the details and current status of a specific email archive export job.

", + "GetArchiveMessage": "

Returns a pre-signed URL that provides temporary download access to the specific email message stored in the archive.

", + "GetArchiveMessageContent": "

Returns the textual content of a specific email message stored in the archive. Attachments are not included.

", + "GetArchiveSearch": "

Retrieves the details and current status of a specific email archive search job.

", + "GetArchiveSearchResults": "

Returns the results of a completed email archive search job.

", + "GetIngressPoint": "

Fetch ingress endpoint resource attributes.

", + "GetRelay": "

Fetch the relay resource and it's attributes.

", + "GetRuleSet": "

Fetch attributes of a rule set.

", + "GetTrafficPolicy": "

Fetch attributes of a traffic policy resource.

", + "ListAddonInstances": "

Lists all Add On instances in your account.

", + "ListAddonSubscriptions": "

Lists all Add On subscriptions in your account.

", + "ListArchiveExports": "

Returns a list of email archive export jobs.

", + "ListArchiveSearches": "

Returns a list of email archive search jobs.

", + "ListArchives": "

Returns a list of all email archives in your account.

", + "ListIngressPoints": "

List all ingress endpoint resources.

", + "ListRelays": "

Lists all the existing relay resources.

", + "ListRuleSets": "

List rule sets for this account.

", + "ListTagsForResource": "

Retrieves the list of tags (keys and values) assigned to the resource.

", + "ListTrafficPolicies": "

List traffic policy resources.

", + "StartArchiveExport": "

Initiates an export of emails from the specified archive.

", + "StartArchiveSearch": "

Initiates a search across emails in the specified archive.

", + "StopArchiveExport": "

Stops an in-progress export of emails from an archive.

", + "StopArchiveSearch": "

Stops an in-progress archive search job.

", + "TagResource": "

Adds one or more tags (keys and values) to a specified resource.

", + "UntagResource": "

Remove one or more tags (keys and values) from a specified resource.

", + "UpdateArchive": "

Updates the attributes of an existing email archive.

", + "UpdateIngressPoint": "

Update attributes of a provisioned ingress endpoint resource.

", + "UpdateRelay": "

Updates the attributes of an existing relay resource.

", + "UpdateRuleSet": "

>Update attributes of an already provisioned rule set.

", + "UpdateTrafficPolicy": "

Update attributes of an already provisioned traffic policy resource.

" + }, + "shapes": { + "AcceptAction": { + "base": null, + "refs": { + "CreateTrafficPolicyRequest$DefaultAction": "

Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

", + "GetTrafficPolicyResponse$DefaultAction": "

The default action of the traffic policy.

", + "PolicyStatement$Action": "

The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

", + "TrafficPolicy$DefaultAction": "

Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

", + "UpdateTrafficPolicyRequest$DefaultAction": "

Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

" + } + }, + "AccessDeniedException": { + "base": "

Occurs when a user is denied access to a specific resource or action.

", + "refs": { + } + }, + "ActionFailurePolicy": { + "base": null, + "refs": { + "ArchiveAction$ActionFailurePolicy": "

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified archive has been deleted.

", + "DeliverToMailboxAction$ActionFailurePolicy": "

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.

", + "RelayAction$ActionFailurePolicy": "

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.

", + "S3Action$ActionFailurePolicy": "

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.

", + "SendAction$ActionFailurePolicy": "

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.

" + } + }, + "AddHeaderAction": { + "base": "

The action to add a header to a message. When executed, this action will add the given header to the message.

", + "refs": { + "RuleAction$AddHeader": "

This action adds a header. This can be used to add arbitrary email headers.

" + } + }, + "AddonInstance": { + "base": "

An Add On instance represents a specific configuration of an Add On.

", + "refs": { + "AddonInstances$member": null + } + }, + "AddonInstanceArn": { + "base": null, + "refs": { + "AddonInstance$AddonInstanceArn": "

The Amazon Resource Name (ARN) of the Add On instance.

", + "GetAddonInstanceResponse$AddonInstanceArn": "

The Amazon Resource Name (ARN) of the Add On instance.

" + } + }, + "AddonInstanceId": { + "base": null, + "refs": { + "AddonInstance$AddonInstanceId": "

The unique ID of the Add On instance.

", + "CreateAddonInstanceResponse$AddonInstanceId": "

The unique ID of the Add On instance created by this API.

", + "DeleteAddonInstanceRequest$AddonInstanceId": "

The Add On instance ID to delete.

", + "GetAddonInstanceRequest$AddonInstanceId": "

The Add On instance ID to retrieve information for.

" + } + }, + "AddonInstances": { + "base": null, + "refs": { + "ListAddonInstancesResponse$AddonInstances": "

The list of ingress endpoints.

" + } + }, + "AddonName": { + "base": null, + "refs": { + "AddonInstance$AddonName": "

The name of the Add On for the instance.

", + "AddonSubscription$AddonName": "

The name of the Add On.

", + "CreateAddonSubscriptionRequest$AddonName": "

The name of the Add On to subscribe to. You can only have one subscription for each Add On name.

", + "GetAddonInstanceResponse$AddonName": "

The name of the Add On provider associated to the subscription of the instance.

", + "GetAddonSubscriptionResponse$AddonName": "

The name of the Add On for the subscription.

" + } + }, + "AddonSubscription": { + "base": "

A subscription for an Add On representing the acceptance of its terms of use and additional pricing.

", + "refs": { + "AddonSubscriptions$member": null + } + }, + "AddonSubscriptionArn": { + "base": null, + "refs": { + "AddonSubscription$AddonSubscriptionArn": "

The Amazon Resource Name (ARN) of the Add On subscription.

", + "GetAddonSubscriptionResponse$AddonSubscriptionArn": "

Amazon Resource Name (ARN) for the subscription.

" + } + }, + "AddonSubscriptionId": { + "base": null, + "refs": { + "AddonInstance$AddonSubscriptionId": "

The subscription ID for the instance.

", + "AddonSubscription$AddonSubscriptionId": "

The unique ID of the Add On subscription.

", + "CreateAddonInstanceRequest$AddonSubscriptionId": "

The unique ID of a previously created subscription that an Add On instance is created for. You can only have one instance per subscription.

", + "CreateAddonSubscriptionResponse$AddonSubscriptionId": "

The unique ID of the Add On subscription created by this API.

", + "DeleteAddonSubscriptionRequest$AddonSubscriptionId": "

The Add On subscription ID to delete.

", + "GetAddonInstanceResponse$AddonSubscriptionId": "

The subscription ID associated to the instance.

", + "GetAddonSubscriptionRequest$AddonSubscriptionId": "

The Add On subscription ID to retrieve information for.

" + } + }, + "AddonSubscriptions": { + "base": null, + "refs": { + "ListAddonSubscriptionsResponse$AddonSubscriptions": "

The list of ingress endpoints.

" + } + }, + "Analysis": { + "base": "

The result of an analysis can be used in conditions to trigger actions. Analyses can inspect the email content and report a certain aspect of the email.

", + "refs": { + "RuleVerdictToEvaluate$Analysis": "

The Add On ARN and its returned value to evaluate in a verdict condition expression.

" + } + }, + "AnalyzerArn": { + "base": null, + "refs": { + "Analysis$Analyzer": "

The Amazon Resource Name (ARN) of an Add On.

", + "IngressAnalysis$Analyzer": "

The Amazon Resource Name (ARN) of an Add On.

" + } + }, + "Archive": { + "base": "

An archive resource for storing and retaining emails.

", + "refs": { + "ArchivesList$member": null + } + }, + "ArchiveAction": { + "base": "

The action to archive the email by delivering the email to an Amazon SES archive.

", + "refs": { + "RuleAction$Archive": "

This action archives the email. This can be used to deliver an email to an archive.

" + } + }, + "ArchiveArn": { + "base": null, + "refs": { + "GetArchiveResponse$ArchiveArn": "

The Amazon Resource Name (ARN) of the archive.

" + } + }, + "ArchiveBooleanEmailAttribute": { + "base": null, + "refs": { + "ArchiveBooleanToEvaluate$Attribute": "

The name of the email attribute to evaluate.

" + } + }, + "ArchiveBooleanExpression": { + "base": "

A boolean expression to evaluate email attribute values.

", + "refs": { + "ArchiveFilterCondition$BooleanExpression": "

A boolean expression to evaluate against email attributes.

" + } + }, + "ArchiveBooleanOperator": { + "base": null, + "refs": { + "ArchiveBooleanExpression$Operator": "

The boolean operator to use for evaluation.

" + } + }, + "ArchiveBooleanToEvaluate": { + "base": "

The attribute to evaluate in a boolean expression.

", + "refs": { + "ArchiveBooleanExpression$Evaluate": "

The email attribute value to evaluate.

" + } + }, + "ArchiveFilterCondition": { + "base": "

A filter condition used to include or exclude emails when exporting from or searching an archive.

", + "refs": { + "ArchiveFilterConditions$member": null + } + }, + "ArchiveFilterConditions": { + "base": null, + "refs": { + "ArchiveFilters$Include": "

The filter conditions for emails to include.

", + "ArchiveFilters$Unless": "

The filter conditions for emails to exclude.

" + } + }, + "ArchiveFilters": { + "base": "

A set of filter conditions to include and/or exclude emails.

", + "refs": { + "GetArchiveExportResponse$Filters": "

The criteria used to filter emails included in the export.

", + "GetArchiveSearchResponse$Filters": "

The criteria used to filter emails included in the search.

", + "StartArchiveExportRequest$Filters": "

Criteria to filter which emails are included in the export.

", + "StartArchiveSearchRequest$Filters": "

Criteria to filter which emails are included in the search results.

" + } + }, + "ArchiveId": { + "base": null, + "refs": { + "GetArchiveExportResponse$ArchiveId": "

The identifier of the archive the email export was performed from.

", + "GetArchiveSearchResponse$ArchiveId": "

The identifier of the archive the email search was performed in.

", + "ListArchiveExportsRequest$ArchiveId": "

The identifier of the archive.

", + "ListArchiveSearchesRequest$ArchiveId": "

The identifier of the archive.

", + "StartArchiveExportRequest$ArchiveId": "

The identifier of the archive to export emails from.

", + "StartArchiveSearchRequest$ArchiveId": "

The identifier of the archive to search emails in.

" + } + }, + "ArchiveIdString": { + "base": null, + "refs": { + "Archive$ArchiveId": "

The unique identifier of the archive.

", + "CreateArchiveResponse$ArchiveId": "

The unique identifier for the newly created archive.

", + "DeleteArchiveRequest$ArchiveId": "

The identifier of the archive to delete.

", + "GetArchiveRequest$ArchiveId": "

The identifier of the archive to retrieve.

", + "GetArchiveResponse$ArchiveId": "

The unique identifier of the archive.

", + "UpdateArchiveRequest$ArchiveId": "

The identifier of the archive to update.

" + } + }, + "ArchiveNameString": { + "base": null, + "refs": { + "Archive$ArchiveName": "

The unique name assigned to the archive.

", + "CreateArchiveRequest$ArchiveName": "

A unique name for the new archive.

", + "GetArchiveResponse$ArchiveName": "

The unique name assigned to the archive.

", + "UpdateArchiveRequest$ArchiveName": "

A new, unique name for the archive.

" + } + }, + "ArchiveRetention": { + "base": "

The retention policy for an email archive that specifies how long emails are kept before being automatically deleted.

", + "refs": { + "CreateArchiveRequest$Retention": "

The period for retaining emails in the archive before automatic deletion.

", + "GetArchiveResponse$Retention": "

The retention period for emails in this archive.

", + "UpdateArchiveRequest$Retention": "

A new retention period for emails in the archive.

" + } + }, + "ArchiveState": { + "base": null, + "refs": { + "Archive$ArchiveState": "

The current state of the archive:

", + "GetArchiveResponse$ArchiveState": "

The current state of the archive:

" + } + }, + "ArchiveStringEmailAttribute": { + "base": null, + "refs": { + "ArchiveStringToEvaluate$Attribute": "

The name of the email attribute to evaluate.

" + } + }, + "ArchiveStringExpression": { + "base": "

A string expression to evaluate an email attribute value against one or more string values.

", + "refs": { + "ArchiveFilterCondition$StringExpression": "

A string expression to evaluate against email attributes.

" + } + }, + "ArchiveStringOperator": { + "base": null, + "refs": { + "ArchiveStringExpression$Operator": "

The operator to use when evaluating the string values.

" + } + }, + "ArchiveStringToEvaluate": { + "base": "

Specifies the email attribute to evaluate in a string expression.

", + "refs": { + "ArchiveStringExpression$Evaluate": "

The attribute of the email to evaluate.

" + } + }, + "ArchivedMessageId": { + "base": null, + "refs": { + "GetArchiveMessageContentRequest$ArchivedMessageId": "

The unique identifier of the archived email message.

", + "GetArchiveMessageRequest$ArchivedMessageId": "

The unique identifier of the archived email message.

", + "Row$ArchivedMessageId": "

The unique identifier of the archived message.

" + } + }, + "ArchivesList": { + "base": null, + "refs": { + "ListArchivesResponse$Archives": "

The list of archive details.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "MessageBody$MessageMalformed": "

A flag indicating if the email was malformed.

", + "Row$HasAttachments": "

A flag indicating if the email has attachments.

" + } + }, + "ConflictException": { + "base": "

The request configuration has conflicts. For details, see the accompanying error message.

", + "refs": { + } + }, + "CreateAddonInstanceRequest": { + "base": null, + "refs": { + } + }, + "CreateAddonInstanceResponse": { + "base": null, + "refs": { + } + }, + "CreateAddonSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "CreateAddonSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "CreateArchiveRequest": { + "base": "

The request to create a new email archive.

", + "refs": { + } + }, + "CreateArchiveResponse": { + "base": "

The response from creating a new email archive.

", + "refs": { + } + }, + "CreateIngressPointRequest": { + "base": null, + "refs": { + } + }, + "CreateIngressPointResponse": { + "base": null, + "refs": { + } + }, + "CreateRelayRequest": { + "base": null, + "refs": { + } + }, + "CreateRelayResponse": { + "base": null, + "refs": { + } + }, + "CreateRuleSetRequest": { + "base": null, + "refs": { + } + }, + "CreateRuleSetResponse": { + "base": null, + "refs": { + } + }, + "CreateTrafficPolicyRequest": { + "base": null, + "refs": { + } + }, + "CreateTrafficPolicyResponse": { + "base": null, + "refs": { + } + }, + "DeleteAddonInstanceRequest": { + "base": null, + "refs": { + } + }, + "DeleteAddonInstanceResponse": { + "base": null, + "refs": { + } + }, + "DeleteAddonSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "DeleteAddonSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "DeleteArchiveRequest": { + "base": "

The request to initiate deletion of an email archive.

", + "refs": { + } + }, + "DeleteArchiveResponse": { + "base": "

The response indicating if the archive deletion was successfully initiated.

On success, returns an HTTP 200 status code. On failure, returns an error message.

", + "refs": { + } + }, + "DeleteIngressPointRequest": { + "base": null, + "refs": { + } + }, + "DeleteIngressPointResponse": { + "base": null, + "refs": { + } + }, + "DeleteRelayRequest": { + "base": null, + "refs": { + } + }, + "DeleteRelayResponse": { + "base": null, + "refs": { + } + }, + "DeleteRuleSetRequest": { + "base": null, + "refs": { + } + }, + "DeleteRuleSetResponse": { + "base": null, + "refs": { + } + }, + "DeleteTrafficPolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteTrafficPolicyResponse": { + "base": null, + "refs": { + } + }, + "DeliverToMailboxAction": { + "base": "

This action to delivers an email to a mailbox.

", + "refs": { + "RuleAction$DeliverToMailbox": "

This action delivers an email to a WorkMail mailbox.

" + } + }, + "Double": { + "base": null, + "refs": { + "RuleNumberExpression$Value": "

The value to evaluate in a numeric condition expression.

" + } + }, + "DropAction": { + "base": "

This action causes processing to stop and the email to be dropped. If the action applies only to certain recipients, only those recipients are dropped, and processing continues for other recipients.

", + "refs": { + "RuleAction$Drop": "

This action terminates the evaluation of rules in the rule set.

" + } + }, + "EmailAddress": { + "base": null, + "refs": { + "Recipients$member": null + } + }, + "EmailReceivedHeadersList": { + "base": null, + "refs": { + "Row$ReceivedHeaders": "

The received headers from the email delivery path.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "AccessDeniedException$Message": null, + "ConflictException$Message": null, + "ExportStatus$ErrorMessage": "

An error message if the export job failed.

", + "ResourceNotFoundException$Message": null, + "SearchStatus$ErrorMessage": "

An error message if the search failed.

", + "ServiceQuotaExceededException$Message": null, + "ThrottlingException$Message": null, + "ValidationException$Message": null + } + }, + "ExportDestinationConfiguration": { + "base": "

The destination configuration for delivering exported email data.

", + "refs": { + "GetArchiveExportResponse$ExportDestinationConfiguration": "

Where the exported emails are being delivered.

", + "StartArchiveExportRequest$ExportDestinationConfiguration": "

Details on where to deliver the exported email data.

" + } + }, + "ExportId": { + "base": null, + "refs": { + "ExportSummary$ExportId": "

The unique identifier of the export job.

", + "GetArchiveExportRequest$ExportId": "

The identifier of the export job to get details for.

", + "StartArchiveExportResponse$ExportId": "

The unique identifier for the initiated export job.

", + "StopArchiveExportRequest$ExportId": "

The identifier of the export job to stop.

" + } + }, + "ExportMaxResults": { + "base": null, + "refs": { + "GetArchiveExportResponse$MaxResults": "

The maximum number of email items included in the export.

", + "StartArchiveExportRequest$MaxResults": "

The maximum number of email items to include in the export.

" + } + }, + "ExportState": { + "base": null, + "refs": { + "ExportStatus$State": "

The current state of the export job.

" + } + }, + "ExportStatus": { + "base": "

The current status of an archive export job.

", + "refs": { + "ExportSummary$Status": "

The current status of the export job.

", + "GetArchiveExportResponse$Status": "

The current status of the export job.

" + } + }, + "ExportSummary": { + "base": "

Summary statuses of an archive export job.

", + "refs": { + "ExportSummaryList$member": null + } + }, + "ExportSummaryList": { + "base": null, + "refs": { + "ListArchiveExportsResponse$Exports": "

The list of export job identifiers and statuses.

" + } + }, + "GetAddonInstanceRequest": { + "base": null, + "refs": { + } + }, + "GetAddonInstanceResponse": { + "base": null, + "refs": { + } + }, + "GetAddonSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "GetAddonSubscriptionResponse": { + "base": null, + "refs": { + } + }, + "GetArchiveExportRequest": { + "base": "

The request to retrieve details of a specific archive export job.

", + "refs": { + } + }, + "GetArchiveExportResponse": { + "base": "

The response containing details of the specified archive export job.

", + "refs": { + } + }, + "GetArchiveMessageContentRequest": { + "base": "

The request to get the textual content of a specific email message stored in an archive.

", + "refs": { + } + }, + "GetArchiveMessageContentResponse": { + "base": "

The response containing the textual content of the requested archived email message.

", + "refs": { + } + }, + "GetArchiveMessageRequest": { + "base": "

The request to get details of a specific email message stored in an archive.

", + "refs": { + } + }, + "GetArchiveMessageResponse": { + "base": "

The response containing details about the requested archived email message.

", + "refs": { + } + }, + "GetArchiveRequest": { + "base": "

The request to retrieve details of an email archive.

", + "refs": { + } + }, + "GetArchiveResponse": { + "base": "

The response containing details of the requested archive.

", + "refs": { + } + }, + "GetArchiveSearchRequest": { + "base": "

The request to retrieve details of a specific archive search job.

", + "refs": { + } + }, + "GetArchiveSearchResponse": { + "base": "

The response containing details of the specified archive search job.

", + "refs": { + } + }, + "GetArchiveSearchResultsRequest": { + "base": "

The request to retrieve results from a completed archive search job.

", + "refs": { + } + }, + "GetArchiveSearchResultsResponse": { + "base": "

The response containing search results from a completed archive search.

", + "refs": { + } + }, + "GetIngressPointRequest": { + "base": null, + "refs": { + } + }, + "GetIngressPointResponse": { + "base": null, + "refs": { + } + }, + "GetRelayRequest": { + "base": null, + "refs": { + } + }, + "GetRelayResponse": { + "base": null, + "refs": { + } + }, + "GetRuleSetRequest": { + "base": null, + "refs": { + } + }, + "GetRuleSetResponse": { + "base": null, + "refs": { + } + }, + "GetTrafficPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetTrafficPolicyResponse": { + "base": null, + "refs": { + } + }, + "HeaderName": { + "base": null, + "refs": { + "AddHeaderAction$HeaderName": "

The name of the header to add to an email. The header must be prefixed with \"X-\". Headers are added regardless of whether the header name pre-existed in the email.

" + } + }, + "HeaderValue": { + "base": null, + "refs": { + "AddHeaderAction$HeaderValue": "

The value of the header to add to the email.

" + } + }, + "IamRoleArn": { + "base": null, + "refs": { + "DeliverToMailboxAction$RoleArn": "

The Amazon Resource Name (ARN) of an IAM role to use to execute this action. The role must have access to the workmail:DeliverToMailbox API.

", + "S3Action$RoleArn": "

The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.

", + "SendAction$RoleArn": "

The Amazon Resource Name (ARN) of the role to use for this action. This role must have access to the ses:SendRawEmail API.

" + } + }, + "IdOrArn": { + "base": null, + "refs": { + "RelayAction$Relay": "

The identifier of the relay resource to be used when relaying an email.

" + } + }, + "IdempotencyToken": { + "base": null, + "refs": { + "CreateAddonInstanceRequest$ClientToken": "

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "CreateAddonSubscriptionRequest$ClientToken": "

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "CreateArchiveRequest$ClientToken": "

A unique token Amazon SES uses to recognize retries of this request.

", + "CreateIngressPointRequest$ClientToken": "

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "CreateRelayRequest$ClientToken": "

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "CreateRuleSetRequest$ClientToken": "

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "CreateTrafficPolicyRequest$ClientToken": "

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

" + } + }, + "IngressAnalysis": { + "base": "

The Add On ARN and its returned value that is evaluated in a policy statement's conditional expression to either deny or block the incoming email.

", + "refs": { + "IngressBooleanToEvaluate$Analysis": "

The structure type for a boolean condition stating the Add On ARN and its returned value.

" + } + }, + "IngressBooleanExpression": { + "base": "

The structure for a boolean condition matching on the incoming mail.

", + "refs": { + "PolicyCondition$BooleanExpression": "

This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + } + }, + "IngressBooleanOperator": { + "base": null, + "refs": { + "IngressBooleanExpression$Operator": "

The matching operator for a boolean condition expression.

" + } + }, + "IngressBooleanToEvaluate": { + "base": "

The union type representing the allowed types of operands for a boolean condition.

", + "refs": { + "IngressBooleanExpression$Evaluate": "

The operand on which to perform a boolean condition operation.

" + } + }, + "IngressIpOperator": { + "base": null, + "refs": { + "IngressIpv4Expression$Operator": "

The matching operator for an IP condition expression.

" + } + }, + "IngressIpToEvaluate": { + "base": "

The structure for an IP based condition matching on the incoming mail.

", + "refs": { + "IngressIpv4Expression$Evaluate": "

The left hand side argument of an IP condition expression.

" + } + }, + "IngressIpv4Attribute": { + "base": null, + "refs": { + "IngressIpToEvaluate$Attribute": "

An enum type representing the allowed attribute types for an IP condition.

" + } + }, + "IngressIpv4Expression": { + "base": "

The union type representing the allowed types for the left hand side of an IP condition.

", + "refs": { + "PolicyCondition$IpExpression": "

This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + } + }, + "IngressPoint": { + "base": "

The structure of an ingress endpoint resource.

", + "refs": { + "IngressPointsList$member": null + } + }, + "IngressPointARecord": { + "base": null, + "refs": { + "GetIngressPointResponse$ARecord": "

The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.

", + "IngressPoint$ARecord": "

The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.

" + } + }, + "IngressPointArn": { + "base": null, + "refs": { + "GetIngressPointResponse$IngressPointArn": "

The Amazon Resource Name (ARN) of the ingress endpoint resource.

" + } + }, + "IngressPointAuthConfiguration": { + "base": "

The authentication configuration for the ingress endpoint resource.

", + "refs": { + "GetIngressPointResponse$IngressPointAuthConfiguration": "

The authentication configuration of the ingress endpoint resource.

" + } + }, + "IngressPointConfiguration": { + "base": "

The configuration of the ingress endpoint resource.

", + "refs": { + "CreateIngressPointRequest$IngressPointConfiguration": "

If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

", + "UpdateIngressPointRequest$IngressPointConfiguration": "

If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

" + } + }, + "IngressPointId": { + "base": null, + "refs": { + "CreateIngressPointResponse$IngressPointId": "

The unique identifier for a previously created ingress endpoint.

", + "DeleteIngressPointRequest$IngressPointId": "

The identifier of the ingress endpoint resource that you want to delete.

", + "GetIngressPointRequest$IngressPointId": "

The identifier of an ingress endpoint.

", + "GetIngressPointResponse$IngressPointId": "

The identifier of an ingress endpoint resource.

", + "IngressPoint$IngressPointId": "

The identifier of the ingress endpoint resource.

", + "UpdateIngressPointRequest$IngressPointId": "

The identifier for the ingress endpoint you want to update.

" + } + }, + "IngressPointName": { + "base": null, + "refs": { + "CreateIngressPointRequest$IngressPointName": "

A user friendly name for an ingress endpoint resource.

", + "GetIngressPointResponse$IngressPointName": "

A user friendly name for the ingress endpoint.

", + "IngressPoint$IngressPointName": "

A user friendly name for the ingress endpoint resource.

", + "UpdateIngressPointRequest$IngressPointName": "

A user friendly name for the ingress endpoint resource.

" + } + }, + "IngressPointPasswordConfiguration": { + "base": "

The password configuration of the ingress endpoint resource.

", + "refs": { + "IngressPointAuthConfiguration$IngressPointPasswordConfiguration": "

The ingress endpoint password configuration for the ingress endpoint resource.

" + } + }, + "IngressPointStatus": { + "base": null, + "refs": { + "GetIngressPointResponse$Status": "

The status of the ingress endpoint resource.

", + "IngressPoint$Status": "

The status of the ingress endpoint resource.

" + } + }, + "IngressPointStatusToUpdate": { + "base": null, + "refs": { + "UpdateIngressPointRequest$StatusToUpdate": "

The update status of an ingress endpoint.

" + } + }, + "IngressPointType": { + "base": null, + "refs": { + "CreateIngressPointRequest$Type": "

The type of the ingress endpoint to create.

", + "GetIngressPointResponse$Type": "

The type of ingress endpoint.

", + "IngressPoint$Type": "

The type of ingress endpoint resource.

" + } + }, + "IngressPointsList": { + "base": null, + "refs": { + "ListIngressPointsResponse$IngressPoints": "

The list of ingress endpoints.

" + } + }, + "IngressStringEmailAttribute": { + "base": null, + "refs": { + "IngressStringToEvaluate$Attribute": "

The enum type representing the allowed attribute types for a string condition.

" + } + }, + "IngressStringExpression": { + "base": "

The structure for a string based condition matching on the incoming mail.

", + "refs": { + "PolicyCondition$StringExpression": "

This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + } + }, + "IngressStringOperator": { + "base": null, + "refs": { + "IngressStringExpression$Operator": "

The matching operator for a string condition expression.

" + } + }, + "IngressStringToEvaluate": { + "base": "

The union type representing the allowed types for the left hand side of a string condition.

", + "refs": { + "IngressStringExpression$Evaluate": "

The left hand side argument of a string condition expression.

" + } + }, + "IngressTlsAttribute": { + "base": null, + "refs": { + "IngressTlsProtocolToEvaluate$Attribute": "

The enum type representing the allowed attribute types for the TLS condition.

" + } + }, + "IngressTlsProtocolAttribute": { + "base": null, + "refs": { + "IngressTlsProtocolExpression$Value": "

The right hand side argument of a TLS condition expression.

" + } + }, + "IngressTlsProtocolExpression": { + "base": "

The structure for a TLS related condition matching on the incoming mail.

", + "refs": { + "PolicyCondition$TlsExpression": "

This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + } + }, + "IngressTlsProtocolOperator": { + "base": null, + "refs": { + "IngressTlsProtocolExpression$Operator": "

The matching operator for a TLS condition expression.

" + } + }, + "IngressTlsProtocolToEvaluate": { + "base": "

The union type representing the allowed types for the left hand side of a TLS condition.

", + "refs": { + "IngressTlsProtocolExpression$Evaluate": "

The left hand side argument of a TLS condition expression.

" + } + }, + "Integer": { + "base": null, + "refs": { + "ListRelaysRequest$PageSize": "

The number of relays to be returned in one request.

" + } + }, + "Ipv4Cidr": { + "base": null, + "refs": { + "Ipv4Cidrs$member": null + } + }, + "Ipv4Cidrs": { + "base": null, + "refs": { + "IngressIpv4Expression$Values": "

The right hand side argument of an IP condition expression.

" + } + }, + "KmsKeyArn": { + "base": null, + "refs": { + "CreateArchiveRequest$KmsKeyArn": "

The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.

", + "GetArchiveResponse$KmsKeyArn": "

The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.

" + } + }, + "KmsKeyId": { + "base": null, + "refs": { + "S3Action$S3SseKmsKeyId": "

The KMS Key ID to use to encrypt the message in S3.

" + } + }, + "ListAddonInstancesRequest": { + "base": null, + "refs": { + } + }, + "ListAddonInstancesResponse": { + "base": null, + "refs": { + } + }, + "ListAddonSubscriptionsRequest": { + "base": null, + "refs": { + } + }, + "ListAddonSubscriptionsResponse": { + "base": null, + "refs": { + } + }, + "ListArchiveExportsRequest": { + "base": "

The request to list archive export jobs in your account.

", + "refs": { + } + }, + "ListArchiveExportsResponse": { + "base": "

The response containing a list of archive export jobs and their statuses.

", + "refs": { + } + }, + "ListArchiveSearchesRequest": { + "base": "

The request to list archive search jobs in your account.

", + "refs": { + } + }, + "ListArchiveSearchesResponse": { + "base": "

The response containing a list of archive search jobs and their statuses.

", + "refs": { + } + }, + "ListArchivesRequest": { + "base": "

The request to list email archives in your account.

", + "refs": { + } + }, + "ListArchivesResponse": { + "base": "

The response containing a list of your email archives.

", + "refs": { + } + }, + "ListIngressPointsRequest": { + "base": null, + "refs": { + } + }, + "ListIngressPointsResponse": { + "base": null, + "refs": { + } + }, + "ListRelaysRequest": { + "base": null, + "refs": { + } + }, + "ListRelaysResponse": { + "base": null, + "refs": { + } + }, + "ListRuleSetsRequest": { + "base": null, + "refs": { + } + }, + "ListRuleSetsResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "ListTrafficPoliciesRequest": { + "base": null, + "refs": { + } + }, + "ListTrafficPoliciesResponse": { + "base": null, + "refs": { + } + }, + "MailFrom": { + "base": null, + "refs": { + "RelayAction$MailFrom": "

This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.

" + } + }, + "MaxMessageSizeBytes": { + "base": null, + "refs": { + "CreateTrafficPolicyRequest$MaxMessageSizeBytes": "

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

", + "GetTrafficPolicyResponse$MaxMessageSizeBytes": "

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

", + "UpdateTrafficPolicyRequest$MaxMessageSizeBytes": "

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

" + } + }, + "MessageBody": { + "base": "

The textual body content of an email message.

", + "refs": { + "GetArchiveMessageContentResponse$Body": "

The textual body content of the email message.

" + } + }, + "NameOrArn": { + "base": null, + "refs": { + "ArchiveAction$TargetArchive": "

The identifier of the archive to send the email to.

", + "DeliverToMailboxAction$MailboxArn": "

The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to.

" + } + }, + "NoAuthentication": { + "base": "

Explicitly indicate that the relay destination server does not require SMTP credential authentication.

", + "refs": { + "RelayAuthentication$NoAuthentication": "

Keep an empty structure if the relay destination server does not require SMTP credential authentication.

" + } + }, + "PageSize": { + "base": null, + "refs": { + "ListAddonInstancesRequest$PageSize": "

The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

", + "ListAddonSubscriptionsRequest$PageSize": "

The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

", + "ListArchiveExportsRequest$PageSize": "

The maximum number of archive export jobs that are returned per call. You can use NextToken to obtain further pages of archives.

", + "ListArchiveSearchesRequest$PageSize": "

The maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives.

", + "ListArchivesRequest$PageSize": "

The maximum number of archives that are returned per call. You can use NextToken to obtain further pages of archives.

", + "ListIngressPointsRequest$PageSize": "

The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

", + "ListRuleSetsRequest$PageSize": "

The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.

", + "ListTrafficPoliciesRequest$PageSize": "

The maximum number of traffic policy resources that are returned per call. You can use NextToken to obtain further traffic policies.

" + } + }, + "PaginationToken": { + "base": null, + "refs": { + "ListAddonInstancesRequest$NextToken": "

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

", + "ListAddonInstancesResponse$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListAddonSubscriptionsRequest$NextToken": "

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

", + "ListAddonSubscriptionsResponse$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListArchiveExportsRequest$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListArchiveExportsResponse$NextToken": "

If present, use to retrieve the next page of results.

", + "ListArchiveSearchesRequest$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListArchiveSearchesResponse$NextToken": "

If present, use to retrieve the next page of results.

", + "ListArchivesRequest$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListArchivesResponse$NextToken": "

If present, use to retrieve the next page of results.

", + "ListIngressPointsRequest$NextToken": "

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

", + "ListIngressPointsResponse$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListRelaysRequest$NextToken": "

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

", + "ListRelaysResponse$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListRuleSetsRequest$NextToken": "

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

", + "ListRuleSetsResponse$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", + "ListTrafficPoliciesRequest$NextToken": "

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

", + "ListTrafficPoliciesResponse$NextToken": "

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + } + }, + "PolicyCondition": { + "base": "

The email traffic filtering conditions which are contained in a traffic policy resource.

", + "refs": { + "PolicyConditions$member": null + } + }, + "PolicyConditions": { + "base": null, + "refs": { + "PolicyStatement$Conditions": "

The list of conditions to apply to incoming messages for filtering email traffic.

" + } + }, + "PolicyStatement": { + "base": "

The structure containing traffic policy conditions and actions.

", + "refs": { + "PolicyStatementList$member": null + } + }, + "PolicyStatementList": { + "base": null, + "refs": { + "CreateTrafficPolicyRequest$PolicyStatements": "

Conditional statements for filtering email traffic.

", + "GetTrafficPolicyResponse$PolicyStatements": "

The list of conditions which are in the traffic policy resource.

", + "UpdateTrafficPolicyRequest$PolicyStatements": "

The list of conditions to be updated for filtering email traffic.

" + } + }, + "Recipients": { + "base": null, + "refs": { + "ReplaceRecipientAction$ReplaceWith": "

This action specifies the replacement recipient email addresses to insert.

" + } + }, + "Relay": { + "base": "

The relay resource that can be used as a rule to relay receiving emails to the destination relay server.

", + "refs": { + "Relays$member": null + } + }, + "RelayAction": { + "base": "

The action relays the email via SMTP to another specific SMTP server.

", + "refs": { + "RuleAction$Relay": "

This action relays the email to another SMTP server.

" + } + }, + "RelayArn": { + "base": null, + "refs": { + "GetRelayResponse$RelayArn": "

The Amazon Resource Name (ARN) of the relay.

" + } + }, + "RelayAuthentication": { + "base": "

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored, or specify an empty NoAuthentication structure if the relay destination server does not require SMTP credential authentication.

", + "refs": { + "CreateRelayRequest$Authentication": "

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

", + "GetRelayResponse$Authentication": "

The authentication attribute—contains the secret ARN where the customer relay server credentials are stored.

", + "UpdateRelayRequest$Authentication": "

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

" + } + }, + "RelayId": { + "base": null, + "refs": { + "CreateRelayResponse$RelayId": "

A unique identifier of the created relay resource.

", + "DeleteRelayRequest$RelayId": "

The unique relay identifier.

", + "GetRelayRequest$RelayId": "

A unique relay identifier.

", + "GetRelayResponse$RelayId": "

The unique relay identifier.

", + "Relay$RelayId": "

The unique relay identifier.

", + "UpdateRelayRequest$RelayId": "

The unique relay identifier.

" + } + }, + "RelayName": { + "base": null, + "refs": { + "CreateRelayRequest$RelayName": "

The unique name of the relay resource.

", + "GetRelayResponse$RelayName": "

The unique name of the relay.

", + "Relay$RelayName": "

The unique relay name.

", + "UpdateRelayRequest$RelayName": "

The name of the relay resource.

" + } + }, + "RelayServerName": { + "base": null, + "refs": { + "CreateRelayRequest$ServerName": "

The destination relay server address.

", + "GetRelayResponse$ServerName": "

The destination relay server address.

", + "UpdateRelayRequest$ServerName": "

The destination relay server address.

" + } + }, + "RelayServerPort": { + "base": null, + "refs": { + "CreateRelayRequest$ServerPort": "

The destination relay server port.

", + "GetRelayResponse$ServerPort": "

The destination relay server port.

", + "UpdateRelayRequest$ServerPort": "

The destination relay server port.

" + } + }, + "Relays": { + "base": null, + "refs": { + "ListRelaysResponse$Relays": "

The list of returned relays.

" + } + }, + "ReplaceRecipientAction": { + "base": "

This action replaces the email envelope recipients with the given list of recipients. If the condition of this action applies only to a subset of recipients, only those recipients are replaced with the recipients specified in the action. The message contents and headers are unaffected by this action, only the envelope recipients are updated.

", + "refs": { + "RuleAction$ReplaceRecipient": "

The action replaces certain or all recipients with a different set of recipients.

" + } + }, + "ResourceNotFoundException": { + "base": "

Occurs when a requested resource is not found.

", + "refs": { + } + }, + "ResultField": { + "base": null, + "refs": { + "Analysis$ResultField": "

The returned value from an Add On.

", + "IngressAnalysis$ResultField": "

The returned value from an Add On.

" + } + }, + "RetentionPeriod": { + "base": null, + "refs": { + "ArchiveRetention$RetentionPeriod": "

The enum value sets the period for retaining emails in an archive.

" + } + }, + "Row": { + "base": "

A result row containing metadata for an archived email message.

", + "refs": { + "RowsList$member": null + } + }, + "RowsList": { + "base": null, + "refs": { + "GetArchiveSearchResultsResponse$Rows": "

The list of email result objects matching the search criteria.

" + } + }, + "Rule": { + "base": "

A rule contains conditions, \"unless conditions\" and actions. For each envelope recipient of an email, if all conditions match and none of the \"unless conditions\" match, then all of the actions are executed sequentially. If no conditions are provided, the rule always applies and the actions are implicitly executed. If only \"unless conditions\" are provided, the rule applies if the email does not match the evaluation of the \"unless conditions\".

", + "refs": { + "Rules$member": null + } + }, + "RuleAction": { + "base": "

The action for a rule to take. Only one of the contained actions can be set.

", + "refs": { + "RuleActions$member": null + } + }, + "RuleActions": { + "base": null, + "refs": { + "Rule$Actions": "

The list of actions to execute when the conditions match the incoming email, and none of the \"unless conditions\" match.

" + } + }, + "RuleBooleanEmailAttribute": { + "base": null, + "refs": { + "RuleBooleanToEvaluate$Attribute": "

The boolean type representing the allowed attribute types for an email.

" + } + }, + "RuleBooleanExpression": { + "base": "

A boolean expression to be used in a rule condition.

", + "refs": { + "RuleCondition$BooleanExpression": "

The condition applies to a boolean expression passed in this field.

" + } + }, + "RuleBooleanOperator": { + "base": null, + "refs": { + "RuleBooleanExpression$Operator": "

The matching operator for a boolean condition expression.

" + } + }, + "RuleBooleanToEvaluate": { + "base": "

The union type representing the allowed types of operands for a boolean condition.

", + "refs": { + "RuleBooleanExpression$Evaluate": "

The operand on which to perform a boolean condition operation.

" + } + }, + "RuleCondition": { + "base": "

The conditional expression used to evaluate an email for determining if a rule action should be taken.

", + "refs": { + "RuleConditions$member": null + } + }, + "RuleConditions": { + "base": null, + "refs": { + "Rule$Conditions": "

The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any \"unless conditions\"

", + "Rule$Unless": "

The \"unless conditions\" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.

" + } + }, + "RuleDmarcExpression": { + "base": "

A DMARC policy expression. The condition matches if the given DMARC policy matches that of the incoming email.

", + "refs": { + "RuleCondition$DmarcExpression": "

The condition applies to a DMARC policy expression passed in this field.

" + } + }, + "RuleDmarcOperator": { + "base": null, + "refs": { + "RuleDmarcExpression$Operator": "

The operator to apply to the DMARC policy of the incoming email.

" + } + }, + "RuleDmarcPolicy": { + "base": null, + "refs": { + "RuleDmarcValueList$member": null + } + }, + "RuleDmarcValueList": { + "base": null, + "refs": { + "RuleDmarcExpression$Values": "

The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.

" + } + }, + "RuleIpEmailAttribute": { + "base": null, + "refs": { + "RuleIpToEvaluate$Attribute": "

The attribute of the email to evaluate.

" + } + }, + "RuleIpExpression": { + "base": "

An IP address expression matching certain IP addresses within a given range of IP addresses.

", + "refs": { + "RuleCondition$IpExpression": "

The condition applies to an IP address expression passed in this field.

" + } + }, + "RuleIpOperator": { + "base": null, + "refs": { + "RuleIpExpression$Operator": "

The operator to evaluate the IP address.

" + } + }, + "RuleIpStringValue": { + "base": null, + "refs": { + "RuleIpValueList$member": null + } + }, + "RuleIpToEvaluate": { + "base": "

The IP address to evaluate for this condition.

", + "refs": { + "RuleIpExpression$Evaluate": "

The IP address to evaluate in this condition.

" + } + }, + "RuleIpValueList": { + "base": null, + "refs": { + "RuleIpExpression$Values": "

The IP CIDR blocks in format \"x.y.z.w/n\" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.

" + } + }, + "RuleName": { + "base": null, + "refs": { + "Rule$Name": "

The user-friendly name of the rule.

" + } + }, + "RuleNumberEmailAttribute": { + "base": null, + "refs": { + "RuleNumberToEvaluate$Attribute": "

An email attribute that is used as the number to evaluate.

" + } + }, + "RuleNumberExpression": { + "base": "

A number expression to match numeric conditions with integers from the incoming email.

", + "refs": { + "RuleCondition$NumberExpression": "

The condition applies to a number expression passed in this field.

" + } + }, + "RuleNumberOperator": { + "base": null, + "refs": { + "RuleNumberExpression$Operator": "

The operator for a numeric condition expression.

" + } + }, + "RuleNumberToEvaluate": { + "base": "

The number to evaluate in a numeric condition expression.

", + "refs": { + "RuleNumberExpression$Evaluate": "

The number to evaluate in a numeric condition expression.

" + } + }, + "RuleSet": { + "base": "

A rule set contains a list of rules that are evaluated in order. Each rule is evaluated sequentially for each email.

", + "refs": { + "RuleSets$member": null + } + }, + "RuleSetArn": { + "base": null, + "refs": { + "GetRuleSetResponse$RuleSetArn": "

The Amazon Resource Name (ARN) of the rule set resource.

" + } + }, + "RuleSetId": { + "base": null, + "refs": { + "CreateIngressPointRequest$RuleSetId": "

The identifier of an existing rule set that you attach to an ingress endpoint resource.

", + "CreateRuleSetResponse$RuleSetId": "

The identifier of the created rule set.

", + "DeleteRuleSetRequest$RuleSetId": "

The identifier of an existing rule set resource to delete.

", + "GetIngressPointResponse$RuleSetId": "

The identifier of a rule set resource associated with the ingress endpoint.

", + "GetRuleSetRequest$RuleSetId": "

The identifier of an existing rule set to be retrieved.

", + "GetRuleSetResponse$RuleSetId": "

The identifier of the rule set resource.

", + "RuleSet$RuleSetId": "

The identifier of the rule set.

", + "UpdateIngressPointRequest$RuleSetId": "

The identifier of an existing rule set that you attach to an ingress endpoint resource.

", + "UpdateRuleSetRequest$RuleSetId": "

The identifier of a rule set you want to update.

" + } + }, + "RuleSetName": { + "base": null, + "refs": { + "CreateRuleSetRequest$RuleSetName": "

A user-friendly name for the rule set.

", + "GetRuleSetResponse$RuleSetName": "

A user-friendly name for the rule set resource.

", + "RuleSet$RuleSetName": "

A user-friendly name for the rule set.

", + "UpdateRuleSetRequest$RuleSetName": "

A user-friendly name for the rule set resource.

" + } + }, + "RuleSets": { + "base": null, + "refs": { + "ListRuleSetsResponse$RuleSets": "

The list of rule sets.

" + } + }, + "RuleStringEmailAttribute": { + "base": null, + "refs": { + "RuleStringToEvaluate$Attribute": "

The email attribute to evaluate in a string condition expression.

" + } + }, + "RuleStringExpression": { + "base": "

A string expression is evaluated against strings or substrings of the email.

", + "refs": { + "RuleCondition$StringExpression": "

The condition applies to a string expression passed in this field.

" + } + }, + "RuleStringList": { + "base": null, + "refs": { + "RuleStringExpression$Values": "

The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.

" + } + }, + "RuleStringOperator": { + "base": null, + "refs": { + "RuleStringExpression$Operator": "

The matching operator for a string condition expression.

" + } + }, + "RuleStringToEvaluate": { + "base": "

The string to evaluate in a string condition expression.

", + "refs": { + "RuleStringExpression$Evaluate": "

The string to evaluate in a string condition expression.

" + } + }, + "RuleStringValue": { + "base": null, + "refs": { + "RuleStringList$member": null + } + }, + "RuleVerdict": { + "base": null, + "refs": { + "RuleVerdictValueList$member": null + } + }, + "RuleVerdictAttribute": { + "base": null, + "refs": { + "RuleVerdictToEvaluate$Attribute": "

The email verdict attribute to evaluate in a string verdict expression.

" + } + }, + "RuleVerdictExpression": { + "base": "

A verdict expression is evaluated against verdicts of the email.

", + "refs": { + "RuleCondition$VerdictExpression": "

The condition applies to a verdict expression passed in this field.

" + } + }, + "RuleVerdictOperator": { + "base": null, + "refs": { + "RuleVerdictExpression$Operator": "

The matching operator for a verdict condition expression.

" + } + }, + "RuleVerdictToEvaluate": { + "base": "

The verdict to evaluate in a verdict condition expression.

", + "refs": { + "RuleVerdictExpression$Evaluate": "

The verdict to evaluate in a verdict condition expression.

" + } + }, + "RuleVerdictValueList": { + "base": null, + "refs": { + "RuleVerdictExpression$Values": "

The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

" + } + }, + "Rules": { + "base": null, + "refs": { + "CreateRuleSetRequest$Rules": "

Conditional rules that are evaluated for determining actions on email.

", + "GetRuleSetResponse$Rules": "

The rules contained in the rule set.

", + "UpdateRuleSetRequest$Rules": "

A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.

" + } + }, + "S3Action": { + "base": "

Writes the MIME content of the email to an S3 bucket.

", + "refs": { + "RuleAction$WriteToS3": "

This action writes the MIME content of the email to an S3 bucket.

" + } + }, + "S3Bucket": { + "base": null, + "refs": { + "S3Action$S3Bucket": "

The bucket name of the S3 bucket to write to.

" + } + }, + "S3ExportDestinationConfiguration": { + "base": "

The configuration for exporting email data to an Amazon S3 bucket.

", + "refs": { + "ExportDestinationConfiguration$S3": "

Configuration for delivering to an Amazon S3 bucket.

" + } + }, + "S3Location": { + "base": null, + "refs": { + "S3ExportDestinationConfiguration$S3Location": "

The S3 location to deliver the exported email data.

" + } + }, + "S3Prefix": { + "base": null, + "refs": { + "S3Action$S3Prefix": "

The S3 prefix to use for the write to the s3 bucket.

" + } + }, + "S3PresignedURL": { + "base": null, + "refs": { + "GetArchiveMessageResponse$MessageDownloadLink": "

A pre-signed URL to temporarily download the full message content.

" + } + }, + "SearchId": { + "base": null, + "refs": { + "GetArchiveSearchRequest$SearchId": "

The identifier of the search job to get details for.

", + "GetArchiveSearchResultsRequest$SearchId": "

The identifier of the completed search job.

", + "SearchSummary$SearchId": "

The unique identifier of the search job.

", + "StartArchiveSearchResponse$SearchId": "

The unique identifier for the initiated search job.

", + "StopArchiveSearchRequest$SearchId": "

The identifier of the search job to stop.

" + } + }, + "SearchMaxResults": { + "base": null, + "refs": { + "GetArchiveSearchResponse$MaxResults": "

The maximum number of search results to return.

", + "StartArchiveSearchRequest$MaxResults": "

The maximum number of search results to return.

" + } + }, + "SearchState": { + "base": null, + "refs": { + "SearchStatus$State": "

The current state of the search job.

" + } + }, + "SearchStatus": { + "base": "

The current status of an archive search job.

", + "refs": { + "GetArchiveSearchResponse$Status": "

The current status of the search job.

", + "SearchSummary$Status": "

The current status of the search job.

" + } + }, + "SearchSummary": { + "base": "

Summary details of an archive search job.

", + "refs": { + "SearchSummaryList$member": null + } + }, + "SearchSummaryList": { + "base": null, + "refs": { + "ListArchiveSearchesResponse$Searches": "

The list of search job identifiers and statuses.

" + } + }, + "SecretArn": { + "base": null, + "refs": { + "IngressPointAuthConfiguration$SecretArn": "

The ingress endpoint SecretsManager::Secret ARN configuration for the ingress endpoint resource.

", + "IngressPointConfiguration$SecretArn": "

The SecretsManager::Secret ARN of the ingress endpoint resource.

", + "RelayAuthentication$SecretArn": "

The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.

" + } + }, + "SendAction": { + "base": "

Sends the email to the internet using the ses:SendRawEmail API.

", + "refs": { + "RuleAction$Send": "

This action sends the email to the internet.

" + } + }, + "ServiceQuotaExceededException": { + "base": "

Occurs when an operation exceeds a predefined service quota or limit.

", + "refs": { + } + }, + "SmtpPassword": { + "base": null, + "refs": { + "IngressPointConfiguration$SmtpPassword": "

The password of the ingress endpoint resource.

" + } + }, + "StartArchiveExportRequest": { + "base": "

The request to initiate an export of emails from an archive.

", + "refs": { + } + }, + "StartArchiveExportResponse": { + "base": "

The response from initiating an archive export.

", + "refs": { + } + }, + "StartArchiveSearchRequest": { + "base": "

The request to initiate a search across emails in an archive.

", + "refs": { + } + }, + "StartArchiveSearchResponse": { + "base": "

The response from initiating an archive search.

", + "refs": { + } + }, + "StopArchiveExportRequest": { + "base": "

The request to stop an in-progress archive export job.

", + "refs": { + } + }, + "StopArchiveExportResponse": { + "base": "

The response indicating if the request to stop the export job succeeded.

On success, returns an HTTP 200 status code. On failure, returns an error message.

", + "refs": { + } + }, + "StopArchiveSearchRequest": { + "base": "

The request to stop an in-progress archive search job.

", + "refs": { + } + }, + "StopArchiveSearchResponse": { + "base": "

The response indicating if the request to stop the search job succeeded.

On success, returns an HTTP 200 status code. On failure, returns an error message.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "EmailReceivedHeadersList$member": null, + "IngressPointPasswordConfiguration$PreviousSmtpPasswordVersion": "

The previous password version of the ingress endpoint resource.

", + "IngressPointPasswordConfiguration$SmtpPasswordVersion": "

The current password expiry timestamp of the ingress endpoint resource.

", + "MessageBody$Html": "

The HTML body content of the message.

", + "MessageBody$Text": "

The plain text body content of the message.

", + "Row$Cc": "

The email addresses in the CC header.

", + "Row$Date": "

The date the email was sent.

", + "Row$From": "

The email address of the sender.

", + "Row$InReplyTo": "

The email message ID this is a reply to.

", + "Row$MessageId": "

The unique message ID of the email.

", + "Row$Subject": "

The subject header value of the email.

", + "Row$To": "

The email addresses in the To header.

", + "Row$XMailer": "

The user agent that sent the email.

", + "Row$XOriginalMailer": "

The original user agent that sent the email.

", + "Row$XPriority": "

The priority level of the email.

", + "StringList$member": null, + "StringValueList$member": null + } + }, + "StringList": { + "base": null, + "refs": { + "IngressStringExpression$Values": "

The right hand side argument of a string condition expression.

" + } + }, + "StringValueList": { + "base": null, + "refs": { + "ArchiveStringExpression$Values": "

The list of string values to evaluate the email attribute against.

" + } + }, + "Tag": { + "base": "

A key-value pair (the value is optional), that you can define and assign to Amazon Web Services resources.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The key of the key-value tag.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateAddonInstanceRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateAddonSubscriptionRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateArchiveRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateIngressPointRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateRelayRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateRuleSetRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "CreateTrafficPolicyRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "ListTagsForResourceResponse$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", + "TagResourceRequest$Tags": "

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The value of the key-value tag.

" + } + }, + "TaggableResourceArn": { + "base": null, + "refs": { + "ListTagsForResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to retrieve tags from.

", + "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource that you want to tag.

", + "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource that you want to untag.

" + } + }, + "ThrottlingException": { + "base": "

Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.

", + "refs": { + } + }, + "Timestamp": { + "base": null, + "refs": { + "AddonInstance$CreatedTimestamp": "

The timestamp of when the Add On instance was created.

", + "AddonSubscription$CreatedTimestamp": "

The timestamp of when the Add On subscription was created.

", + "Archive$LastUpdatedTimestamp": "

The timestamp of when the archive was last updated.

", + "ExportStatus$CompletionTimestamp": "

The timestamp of when the export job completed (if finished).

", + "ExportStatus$SubmissionTimestamp": "

The timestamp of when the export job was submitted.

", + "GetAddonInstanceResponse$CreatedTimestamp": "

The timestamp of when the Add On instance was created.

", + "GetAddonSubscriptionResponse$CreatedTimestamp": "

The timestamp of when the Add On subscription was created.

", + "GetArchiveExportResponse$FromTimestamp": "

The start of the timestamp range the exported emails cover.

", + "GetArchiveExportResponse$ToTimestamp": "

The end of the date range the exported emails cover.

", + "GetArchiveResponse$CreatedTimestamp": "

The timestamp of when the archive was created.

", + "GetArchiveResponse$LastUpdatedTimestamp": "

The timestamp of when the archive was modified.

", + "GetArchiveSearchResponse$FromTimestamp": "

The start timestamp of the range the searched emails cover.

", + "GetArchiveSearchResponse$ToTimestamp": "

The end timestamp of the range the searched emails cover.

", + "GetIngressPointResponse$CreatedTimestamp": "

The timestamp of when the ingress endpoint was created.

", + "GetIngressPointResponse$LastUpdatedTimestamp": "

The timestamp of when the ingress endpoint was last updated.

", + "GetRelayResponse$CreatedTimestamp": "

The timestamp of when the relay was created.

", + "GetRelayResponse$LastModifiedTimestamp": "

The timestamp of when relay was last updated.

", + "GetRuleSetResponse$CreatedDate": "

The date of when then rule set was created.

", + "GetRuleSetResponse$LastModificationDate": "

The date of when the rule set was last modified.

", + "GetTrafficPolicyResponse$CreatedTimestamp": "

The timestamp of when the traffic policy was created.

", + "GetTrafficPolicyResponse$LastUpdatedTimestamp": "

The timestamp of when the traffic policy was last updated.

", + "IngressPointPasswordConfiguration$PreviousSmtpPasswordExpiryTimestamp": "

The previous password expiry timestamp of the ingress endpoint resource.

", + "Relay$LastModifiedTimestamp": "

The timestamp of when the relay was last modified.

", + "Row$ReceivedTimestamp": "

The timestamp of when the email was received.

", + "RuleSet$LastModificationDate": "

The last modification date of the rule set.

", + "SearchStatus$CompletionTimestamp": "

The timestamp of when the search completed (if finished).

", + "SearchStatus$SubmissionTimestamp": "

The timestamp of when the search was submitted.

", + "StartArchiveExportRequest$FromTimestamp": "

The start of the timestamp range to include emails from.

", + "StartArchiveExportRequest$ToTimestamp": "

The end of the timestamp range to include emails from.

", + "StartArchiveSearchRequest$FromTimestamp": "

The start timestamp of the range to search emails from.

", + "StartArchiveSearchRequest$ToTimestamp": "

The end timestamp of the range to search emails from.

" + } + }, + "TrafficPolicy": { + "base": "

The structure of a traffic policy resource which is a container for policy statements.

", + "refs": { + "TrafficPolicyList$member": null + } + }, + "TrafficPolicyArn": { + "base": null, + "refs": { + "GetTrafficPolicyResponse$TrafficPolicyArn": "

The Amazon Resource Name (ARN) of the traffic policy resource.

" + } + }, + "TrafficPolicyId": { + "base": null, + "refs": { + "CreateIngressPointRequest$TrafficPolicyId": "

The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

", + "CreateTrafficPolicyResponse$TrafficPolicyId": "

The identifier of the traffic policy resource.

", + "DeleteTrafficPolicyRequest$TrafficPolicyId": "

The identifier of the traffic policy that you want to delete.

", + "GetIngressPointResponse$TrafficPolicyId": "

The identifier of the traffic policy resource associated with the ingress endpoint.

", + "GetTrafficPolicyRequest$TrafficPolicyId": "

The identifier of the traffic policy resource.

", + "GetTrafficPolicyResponse$TrafficPolicyId": "

The identifier of the traffic policy resource.

", + "TrafficPolicy$TrafficPolicyId": "

The identifier of the traffic policy resource.

", + "UpdateIngressPointRequest$TrafficPolicyId": "

The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

", + "UpdateTrafficPolicyRequest$TrafficPolicyId": "

The identifier of the traffic policy that you want to update.

" + } + }, + "TrafficPolicyList": { + "base": null, + "refs": { + "ListTrafficPoliciesResponse$TrafficPolicies": "

The list of traffic policies.

" + } + }, + "TrafficPolicyName": { + "base": null, + "refs": { + "CreateTrafficPolicyRequest$TrafficPolicyName": "

A user-friendly name for the traffic policy resource.

", + "GetTrafficPolicyResponse$TrafficPolicyName": "

A user-friendly name for the traffic policy resource.

", + "TrafficPolicy$TrafficPolicyName": "

A user-friendly name of the traffic policy resource.

", + "UpdateTrafficPolicyRequest$TrafficPolicyName": "

A user-friendly name for the traffic policy resource.

" + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateArchiveRequest": { + "base": "

The request to update properties of an existing email archive.

", + "refs": { + } + }, + "UpdateArchiveResponse": { + "base": "

The response indicating if the archive update succeeded or failed.

On success, returns an HTTP 200 status code. On failure, returns an error message.

", + "refs": { + } + }, + "UpdateIngressPointRequest": { + "base": null, + "refs": { + } + }, + "UpdateIngressPointResponse": { + "base": null, + "refs": { + } + }, + "UpdateRelayRequest": { + "base": null, + "refs": { + } + }, + "UpdateRelayResponse": { + "base": null, + "refs": { + } + }, + "UpdateRuleSetRequest": { + "base": null, + "refs": { + } + }, + "UpdateRuleSetResponse": { + "base": null, + "refs": { + } + }, + "UpdateTrafficPolicyRequest": { + "base": null, + "refs": { + } + }, + "UpdateTrafficPolicyResponse": { + "base": null, + "refs": { + } + }, + "ValidationException": { + "base": "

The request validation has failed. For details, see the accompanying error message.

", + "refs": { + } + } + } +} diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-rule-set.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-rule-set.json new file mode 100644 index 000000000000..17751d95d6cc --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-rule-set.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] +} \ No newline at end of file diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-tests.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-tests.json new file mode 100644 index 000000000000..10683c5d595a --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.endpoint-tests.json @@ -0,0 +1,314 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.examples.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.examples.json new file mode 100644 index 000000000000..0ea7e3b0bbe9 --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.examples.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.normal.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.normal.json new file mode 100644 index 000000000000..1991fd06c294 --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.normal.json @@ -0,0 +1,4056 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2023-10-17", + "endpointPrefix":"mail-manager", + "jsonVersion":"1.0", + "protocol":"json", + "protocols":["json"], + "serviceFullName":"MailManager", + "serviceId":"MailManager", + "signatureVersion":"v4", + "signingName":"ses", + "targetPrefix":"MailManagerSvc", + "uid":"mailmanager-2023-10-17" + }, + "operations":{ + "CreateAddonInstance":{ + "name":"CreateAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAddonInstanceRequest"}, + "output":{"shape":"CreateAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or traffic policy.

", + "idempotent":true + }, + "CreateAddonSubscription":{ + "name":"CreateAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAddonSubscriptionRequest"}, + "output":{"shape":"CreateAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Creates a subscription for an Add On representing the acceptance of its terms of use and additional pricing. The subscription can then be used to create an instance for use in rule sets or traffic policies.

", + "idempotent":true + }, + "CreateArchive":{ + "name":"CreateArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateArchiveRequest"}, + "output":{"shape":"CreateArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Creates a new email archive resource for storing and retaining emails.

", + "idempotent":true + }, + "CreateIngressPoint":{ + "name":"CreateIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateIngressPointRequest"}, + "output":{"shape":"CreateIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Provision a new ingress endpoint resource.

", + "idempotent":true + }, + "CreateRelay":{ + "name":"CreateRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRelayRequest"}, + "output":{"shape":"CreateRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.

", + "idempotent":true + }, + "CreateRuleSet":{ + "name":"CreateRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRuleSetRequest"}, + "output":{"shape":"CreateRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Provision a new rule set.

", + "idempotent":true + }, + "CreateTrafficPolicy":{ + "name":"CreateTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTrafficPolicyRequest"}, + "output":{"shape":"CreateTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Provision a new traffic policy resource.

", + "idempotent":true + }, + "DeleteAddonInstance":{ + "name":"DeleteAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAddonInstanceRequest"}, + "output":{"shape":"DeleteAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Deletes an Add On instance.

", + "idempotent":true + }, + "DeleteAddonSubscription":{ + "name":"DeleteAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAddonSubscriptionRequest"}, + "output":{"shape":"DeleteAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Deletes an Add On subscription.

", + "idempotent":true + }, + "DeleteArchive":{ + "name":"DeleteArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteArchiveRequest"}, + "output":{"shape":"DeleteArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Initiates deletion of an email archive. This changes the archive state to pending deletion. In this state, no new emails can be added, and existing archived emails become inaccessible (search, export, download). The archive and all of its contents will be permanently deleted 30 days after entering the pending deletion state, regardless of the configured retention period.

", + "idempotent":true + }, + "DeleteIngressPoint":{ + "name":"DeleteIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteIngressPointRequest"}, + "output":{"shape":"DeleteIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Delete an ingress endpoint resource.

", + "idempotent":true + }, + "DeleteRelay":{ + "name":"DeleteRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRelayRequest"}, + "output":{"shape":"DeleteRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Deletes an existing relay resource.

", + "idempotent":true + }, + "DeleteRuleSet":{ + "name":"DeleteRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRuleSetRequest"}, + "output":{"shape":"DeleteRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

Delete a rule set.

", + "idempotent":true + }, + "DeleteTrafficPolicy":{ + "name":"DeleteTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTrafficPolicyRequest"}, + "output":{"shape":"DeleteTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Delete a traffic policy resource.

", + "idempotent":true + }, + "GetAddonInstance":{ + "name":"GetAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAddonInstanceRequest"}, + "output":{"shape":"GetAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Gets detailed information about an Add On instance.

" + }, + "GetAddonSubscription":{ + "name":"GetAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAddonSubscriptionRequest"}, + "output":{"shape":"GetAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Gets detailed information about an Add On subscription.

" + }, + "GetArchive":{ + "name":"GetArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveRequest"}, + "output":{"shape":"GetArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Retrieves the full details and current state of a specified email archive.

" + }, + "GetArchiveExport":{ + "name":"GetArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveExportRequest"}, + "output":{"shape":"GetArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Retrieves the details and current status of a specific email archive export job.

" + }, + "GetArchiveMessage":{ + "name":"GetArchiveMessage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveMessageRequest"}, + "output":{"shape":"GetArchiveMessageResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns a pre-signed URL that provides temporary download access to the specific email message stored in the archive.

" + }, + "GetArchiveMessageContent":{ + "name":"GetArchiveMessageContent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveMessageContentRequest"}, + "output":{"shape":"GetArchiveMessageContentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns the textual content of a specific email message stored in the archive. Attachments are not included.

" + }, + "GetArchiveSearch":{ + "name":"GetArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveSearchRequest"}, + "output":{"shape":"GetArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Retrieves the details and current status of a specific email archive search job.

" + }, + "GetArchiveSearchResults":{ + "name":"GetArchiveSearchResults", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveSearchResultsRequest"}, + "output":{"shape":"GetArchiveSearchResultsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns the results of a completed email archive search job.

" + }, + "GetIngressPoint":{ + "name":"GetIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIngressPointRequest"}, + "output":{"shape":"GetIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Fetch ingress endpoint resource attributes.

" + }, + "GetRelay":{ + "name":"GetRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRelayRequest"}, + "output":{"shape":"GetRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Fetch the relay resource and it's attributes.

" + }, + "GetRuleSet":{ + "name":"GetRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRuleSetRequest"}, + "output":{"shape":"GetRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Fetch attributes of a rule set.

" + }, + "GetTrafficPolicy":{ + "name":"GetTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTrafficPolicyRequest"}, + "output":{"shape":"GetTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Fetch attributes of a traffic policy resource.

" + }, + "ListAddonInstances":{ + "name":"ListAddonInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAddonInstancesRequest"}, + "output":{"shape":"ListAddonInstancesResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

Lists all Add On instances in your account.

" + }, + "ListAddonSubscriptions":{ + "name":"ListAddonSubscriptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAddonSubscriptionsRequest"}, + "output":{"shape":"ListAddonSubscriptionsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

Lists all Add On subscriptions in your account.

" + }, + "ListArchiveExports":{ + "name":"ListArchiveExports", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchiveExportsRequest"}, + "output":{"shape":"ListArchiveExportsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns a list of email archive export jobs.

" + }, + "ListArchiveSearches":{ + "name":"ListArchiveSearches", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchiveSearchesRequest"}, + "output":{"shape":"ListArchiveSearchesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns a list of email archive search jobs.

" + }, + "ListArchives":{ + "name":"ListArchives", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchivesRequest"}, + "output":{"shape":"ListArchivesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns a list of all email archives in your account.

" + }, + "ListIngressPoints":{ + "name":"ListIngressPoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListIngressPointsRequest"}, + "output":{"shape":"ListIngressPointsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

List all ingress endpoint resources.

" + }, + "ListRelays":{ + "name":"ListRelays", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRelaysRequest"}, + "output":{"shape":"ListRelaysResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

Lists all the existing relay resources.

" + }, + "ListRuleSets":{ + "name":"ListRuleSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRuleSetsRequest"}, + "output":{"shape":"ListRuleSetsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

List rule sets for this account.

" + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Retrieves the list of tags (keys and values) assigned to the resource.

" + }, + "ListTrafficPolicies":{ + "name":"ListTrafficPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTrafficPoliciesRequest"}, + "output":{"shape":"ListTrafficPoliciesResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

List traffic policy resources.

" + }, + "StartArchiveExport":{ + "name":"StartArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartArchiveExportRequest"}, + "output":{"shape":"StartArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Initiates an export of emails from the specified archive.

" + }, + "StartArchiveSearch":{ + "name":"StartArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartArchiveSearchRequest"}, + "output":{"shape":"StartArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Initiates a search across emails in the specified archive.

" + }, + "StopArchiveExport":{ + "name":"StopArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopArchiveExportRequest"}, + "output":{"shape":"StopArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Stops an in-progress export of emails from an archive.

" + }, + "StopArchiveSearch":{ + "name":"StopArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopArchiveSearchRequest"}, + "output":{"shape":"StopArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Stops an in-progress archive search job.

", + "idempotent":true + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Adds one or more tags (keys and values) to a specified resource.

", + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Remove one or more tags (keys and values) from a specified resource.

", + "idempotent":true + }, + "UpdateArchive":{ + "name":"UpdateArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateArchiveRequest"}, + "output":{"shape":"UpdateArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Updates the attributes of an existing email archive.

", + "idempotent":true + }, + "UpdateIngressPoint":{ + "name":"UpdateIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateIngressPointRequest"}, + "output":{"shape":"UpdateIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Update attributes of a provisioned ingress endpoint resource.

", + "idempotent":true + }, + "UpdateRelay":{ + "name":"UpdateRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRelayRequest"}, + "output":{"shape":"UpdateRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Updates the attributes of an existing relay resource.

", + "idempotent":true + }, + "UpdateRuleSet":{ + "name":"UpdateRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRuleSetRequest"}, + "output":{"shape":"UpdateRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

>Update attributes of an already provisioned rule set.

", + "idempotent":true + }, + "UpdateTrafficPolicy":{ + "name":"UpdateTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTrafficPolicyRequest"}, + "output":{"shape":"UpdateTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

Update attributes of an already provisioned traffic policy resource.

", + "idempotent":true + } + }, + "shapes":{ + "AcceptAction":{ + "type":"string", + "enum":[ + "ALLOW", + "DENY" + ] + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

Occurs when a user is denied access to a specific resource or action.

", + "exception":true + }, + "ActionFailurePolicy":{ + "type":"string", + "enum":[ + "CONTINUE", + "DROP" + ] + }, + "AddHeaderAction":{ + "type":"structure", + "required":[ + "HeaderName", + "HeaderValue" + ], + "members":{ + "HeaderName":{ + "shape":"HeaderName", + "documentation":"

The name of the header to add to an email. The header must be prefixed with \"X-\". Headers are added regardless of whether the header name pre-existed in the email.

" + }, + "HeaderValue":{ + "shape":"HeaderValue", + "documentation":"

The value of the header to add to the email.

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

The action to add a header to a message. When executed, this action will add the given header to the message.

" + }, + "AddonInstance":{ + "type":"structure", + "members":{ + "AddonInstanceArn":{ + "shape":"AddonInstanceArn", + "documentation":"

The Amazon Resource Name (ARN) of the Add On instance.

" + }, + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

The unique ID of the Add On instance.

" + }, + "AddonName":{ + "shape":"AddonName", + "documentation":"

The name of the Add On for the instance.

" + }, + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The subscription ID for the instance.

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the Add On instance was created.

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

An Add On instance represents a specific configuration of an Add On.

" + }, + "AddonInstanceArn":{"type":"string"}, + "AddonInstanceId":{ + "type":"string", + "max":67, + "min":4, + "pattern":"^ai-[a-zA-Z0-9]{1,64}$" + }, + "AddonInstances":{ + "type":"list", + "member":{"shape":"AddonInstance"} + }, + "AddonName":{"type":"string"}, + "AddonSubscription":{ + "type":"structure", + "members":{ + "AddonName":{ + "shape":"AddonName", + "documentation":"

The name of the Add On.

" + }, + "AddonSubscriptionArn":{ + "shape":"AddonSubscriptionArn", + "documentation":"

The Amazon Resource Name (ARN) of the Add On subscription.

" + }, + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The unique ID of the Add On subscription.

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the Add On subscription was created.

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

A subscription for an Add On representing the acceptance of its terms of use and additional pricing.

" + }, + "AddonSubscriptionArn":{"type":"string"}, + "AddonSubscriptionId":{ + "type":"string", + "max":67, + "min":4, + "pattern":"^as-[a-zA-Z0-9]{1,64}$" + }, + "AddonSubscriptions":{ + "type":"list", + "member":{"shape":"AddonSubscription"} + }, + "Analysis":{ + "type":"structure", + "required":[ + "Analyzer", + "ResultField" + ], + "members":{ + "Analyzer":{ + "shape":"AnalyzerArn", + "documentation":"

The Amazon Resource Name (ARN) of an Add On.

" + }, + "ResultField":{ + "shape":"ResultField", + "documentation":"

The returned value from an Add On.

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

The result of an analysis can be used in conditions to trigger actions. Analyses can inspect the email content and report a certain aspect of the email.

" + }, + "AnalyzerArn":{ + "type":"string", + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "Archive":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

The unique identifier of the archive.

" + }, + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

The unique name assigned to the archive.

" + }, + "ArchiveState":{ + "shape":"ArchiveState", + "documentation":"

The current state of the archive:

" + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the archive was last updated.

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

An archive resource for storing and retaining emails.

" + }, + "ArchiveAction":{ + "type":"structure", + "required":["TargetArchive"], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified archive has been deleted.

" + }, + "TargetArchive":{ + "shape":"NameOrArn", + "documentation":"

The identifier of the archive to send the email to.

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

The action to archive the email by delivering the email to an Amazon SES archive.

" + }, + "ArchiveArn":{"type":"string"}, + "ArchiveBooleanEmailAttribute":{ + "type":"string", + "enum":["HAS_ATTACHMENTS"] + }, + "ArchiveBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{ + "shape":"ArchiveBooleanToEvaluate", + "documentation":"

The email attribute value to evaluate.

" + }, + "Operator":{ + "shape":"ArchiveBooleanOperator", + "documentation":"

The boolean operator to use for evaluation.

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

A boolean expression to evaluate email attribute values.

" + }, + "ArchiveBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "ArchiveBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"ArchiveBooleanEmailAttribute", + "documentation":"

The name of the email attribute to evaluate.

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

The attribute to evaluate in a boolean expression.

", + "union":true + }, + "ArchiveFilterCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{ + "shape":"ArchiveBooleanExpression", + "documentation":"

A boolean expression to evaluate against email attributes.

" + }, + "StringExpression":{ + "shape":"ArchiveStringExpression", + "documentation":"

A string expression to evaluate against email attributes.

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

A filter condition used to include or exclude emails when exporting from or searching an archive.

", + "union":true + }, + "ArchiveFilterConditions":{ + "type":"list", + "member":{"shape":"ArchiveFilterCondition"}, + "max":10, + "min":0 + }, + "ArchiveFilters":{ + "type":"structure", + "members":{ + "Include":{ + "shape":"ArchiveFilterConditions", + "documentation":"

The filter conditions for emails to include.

" + }, + "Unless":{ + "shape":"ArchiveFilterConditions", + "documentation":"

The filter conditions for emails to exclude.

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

A set of filter conditions to include and/or exclude emails.

" + }, + "ArchiveId":{ + "type":"string", + "max":66, + "min":3, + "pattern":"^a-[\\w]{1,64}$" + }, + "ArchiveIdString":{ + "type":"string", + "max":66, + "min":1 + }, + "ArchiveNameString":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$" + }, + "ArchiveRetention":{ + "type":"structure", + "members":{ + "RetentionPeriod":{ + "shape":"RetentionPeriod", + "documentation":"

The enum value sets the period for retaining emails in an archive.

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

The retention policy for an email archive that specifies how long emails are kept before being automatically deleted.

", + "union":true + }, + "ArchiveState":{ + "type":"string", + "enum":[ + "ACTIVE", + "PENDING_DELETION" + ] + }, + "ArchiveStringEmailAttribute":{ + "type":"string", + "enum":[ + "TO", + "FROM", + "CC", + "SUBJECT" + ] + }, + "ArchiveStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"ArchiveStringToEvaluate", + "documentation":"

The attribute of the email to evaluate.

" + }, + "Operator":{ + "shape":"ArchiveStringOperator", + "documentation":"

The operator to use when evaluating the string values.

" + }, + "Values":{ + "shape":"StringValueList", + "documentation":"

The list of string values to evaluate the email attribute against.

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

A string expression to evaluate an email attribute value against one or more string values.

" + }, + "ArchiveStringOperator":{ + "type":"string", + "enum":["CONTAINS"] + }, + "ArchiveStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"ArchiveStringEmailAttribute", + "documentation":"

The name of the email attribute to evaluate.

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

Specifies the email attribute to evaluate in a string expression.

", + "union":true + }, + "ArchivedMessageId":{"type":"string"}, + "ArchivesList":{ + "type":"list", + "member":{"shape":"Archive"} + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

The request configuration has conflicts. For details, see the accompanying error message.

", + "exception":true + }, + "CreateAddonInstanceRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The unique ID of a previously created subscription that an Add On instance is created for. You can only have one instance per subscription.

" + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "idempotencyToken":true + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + } + }, + "CreateAddonInstanceResponse":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

The unique ID of the Add On instance created by this API.

" + } + } + }, + "CreateAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonName"], + "members":{ + "AddonName":{ + "shape":"AddonName", + "documentation":"

The name of the Add On to subscribe to. You can only have one subscription for each Add On name.

" + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "idempotencyToken":true + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + } + }, + "CreateAddonSubscriptionResponse":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The unique ID of the Add On subscription created by this API.

" + } + } + }, + "CreateArchiveRequest":{ + "type":"structure", + "required":["ArchiveName"], + "members":{ + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

A unique name for the new archive.

" + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token Amazon SES uses to recognize retries of this request.

", + "idempotencyToken":true + }, + "KmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"

The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.

" + }, + "Retention":{ + "shape":"ArchiveRetention", + "documentation":"

The period for retaining emails in the archive before automatic deletion.

" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

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

The request to create a new email archive.

" + }, + "CreateArchiveResponse":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

The unique identifier for the newly created archive.

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

The response from creating a new email archive.

" + }, + "CreateIngressPointRequest":{ + "type":"structure", + "required":[ + "IngressPointName", + "RuleSetId", + "TrafficPolicyId", + "Type" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "idempotencyToken":true + }, + "IngressPointConfiguration":{ + "shape":"IngressPointConfiguration", + "documentation":"

If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

" + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

A user friendly name for an ingress endpoint resource.

" + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of an existing rule set that you attach to an ingress endpoint resource.

" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

" + }, + "Type":{ + "shape":"IngressPointType", + "documentation":"

The type of the ingress endpoint to create.

" + } + } + }, + "CreateIngressPointResponse":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

The unique identifier for a previously created ingress endpoint.

" + } + } + }, + "CreateRelayRequest":{ + "type":"structure", + "required":[ + "Authentication", + "RelayName", + "ServerName", + "ServerPort" + ], + "members":{ + "Authentication":{ + "shape":"RelayAuthentication", + "documentation":"

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

" + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "idempotencyToken":true + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

The unique name of the relay resource.

" + }, + "ServerName":{ + "shape":"RelayServerName", + "documentation":"

The destination relay server address.

" + }, + "ServerPort":{ + "shape":"RelayServerPort", + "documentation":"

The destination relay server port.

" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + } + }, + "CreateRelayResponse":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{ + "shape":"RelayId", + "documentation":"

A unique identifier of the created relay resource.

" + } + } + }, + "CreateRuleSetRequest":{ + "type":"structure", + "required":[ + "RuleSetName", + "Rules" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "idempotencyToken":true + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

A user-friendly name for the rule set.

" + }, + "Rules":{ + "shape":"Rules", + "documentation":"

Conditional rules that are evaluated for determining actions on email.

" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + } + }, + "CreateRuleSetResponse":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of the created rule set.

" + } + } + }, + "CreateTrafficPolicyRequest":{ + "type":"structure", + "required":[ + "DefaultAction", + "PolicyStatements", + "TrafficPolicyName" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

A unique token that Amazon SES uses to recognize subsequent retries of the same request.

", + "idempotencyToken":true + }, + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

" + }, + "MaxMessageSizeBytes":{ + "shape":"MaxMessageSizeBytes", + "documentation":"

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

" + }, + "PolicyStatements":{ + "shape":"PolicyStatementList", + "documentation":"

Conditional statements for filtering email traffic.

" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

A user-friendly name for the traffic policy resource.

" + } + } + }, + "CreateTrafficPolicyResponse":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy resource.

" + } + } + }, + "DeleteAddonInstanceRequest":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

The Add On instance ID to delete.

" + } + } + }, + "DeleteAddonInstanceResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The Add On subscription ID to delete.

" + } + } + }, + "DeleteAddonSubscriptionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

The identifier of the archive to delete.

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

The request to initiate deletion of an email archive.

" + }, + "DeleteArchiveResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

The response indicating if the archive deletion was successfully initiated.

On success, returns an HTTP 200 status code. On failure, returns an error message.

" + }, + "DeleteIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

The identifier of the ingress endpoint resource that you want to delete.

" + } + } + }, + "DeleteIngressPointResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{ + "shape":"RelayId", + "documentation":"

The unique relay identifier.

" + } + } + }, + "DeleteRelayResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of an existing rule set resource to delete.

" + } + } + }, + "DeleteRuleSetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy that you want to delete.

" + } + } + }, + "DeleteTrafficPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "DeliverToMailboxAction":{ + "type":"structure", + "required":[ + "MailboxArn", + "RoleArn" + ], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.

" + }, + "MailboxArn":{ + "shape":"NameOrArn", + "documentation":"

The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to.

" + }, + "RoleArn":{ + "shape":"IamRoleArn", + "documentation":"

The Amazon Resource Name (ARN) of an IAM role to use to execute this action. The role must have access to the workmail:DeliverToMailbox API.

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

This action to delivers an email to a mailbox.

" + }, + "Double":{ + "type":"double", + "box":true + }, + "DropAction":{ + "type":"structure", + "members":{ + }, + "documentation":"

This action causes processing to stop and the email to be dropped. If the action applies only to certain recipients, only those recipients are dropped, and processing continues for other recipients.

" + }, + "EmailAddress":{ + "type":"string", + "max":254, + "min":0, + "pattern":"^[0-9A-Za-z@+.-]+$", + "sensitive":true + }, + "EmailReceivedHeadersList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ErrorMessage":{"type":"string"}, + "ExportDestinationConfiguration":{ + "type":"structure", + "members":{ + "S3":{ + "shape":"S3ExportDestinationConfiguration", + "documentation":"

Configuration for delivering to an Amazon S3 bucket.

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

The destination configuration for delivering exported email data.

", + "union":true + }, + "ExportId":{ + "type":"string", + "max":64, + "min":1 + }, + "ExportMaxResults":{ + "type":"integer", + "box":true + }, + "ExportState":{ + "type":"string", + "enum":[ + "QUEUED", + "PREPROCESSING", + "PROCESSING", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "ExportStatus":{ + "type":"structure", + "members":{ + "CompletionTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the export job completed (if finished).

" + }, + "ErrorMessage":{ + "shape":"ErrorMessage", + "documentation":"

An error message if the export job failed.

" + }, + "State":{ + "shape":"ExportState", + "documentation":"

The current state of the export job.

" + }, + "SubmissionTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the export job was submitted.

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

The current status of an archive export job.

" + }, + "ExportSummary":{ + "type":"structure", + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

The unique identifier of the export job.

" + }, + "Status":{ + "shape":"ExportStatus", + "documentation":"

The current status of the export job.

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

Summary statuses of an archive export job.

" + }, + "ExportSummaryList":{ + "type":"list", + "member":{"shape":"ExportSummary"} + }, + "GetAddonInstanceRequest":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

The Add On instance ID to retrieve information for.

" + } + } + }, + "GetAddonInstanceResponse":{ + "type":"structure", + "members":{ + "AddonInstanceArn":{ + "shape":"AddonInstanceArn", + "documentation":"

The Amazon Resource Name (ARN) of the Add On instance.

" + }, + "AddonName":{ + "shape":"AddonName", + "documentation":"

The name of the Add On provider associated to the subscription of the instance.

" + }, + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The subscription ID associated to the instance.

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the Add On instance was created.

" + } + } + }, + "GetAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

The Add On subscription ID to retrieve information for.

" + } + } + }, + "GetAddonSubscriptionResponse":{ + "type":"structure", + "members":{ + "AddonName":{ + "shape":"AddonName", + "documentation":"

The name of the Add On for the subscription.

" + }, + "AddonSubscriptionArn":{ + "shape":"AddonSubscriptionArn", + "documentation":"

Amazon Resource Name (ARN) for the subscription.

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the Add On subscription was created.

" + } + } + }, + "GetArchiveExportRequest":{ + "type":"structure", + "required":["ExportId"], + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

The identifier of the export job to get details for.

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

The request to retrieve details of a specific archive export job.

" + }, + "GetArchiveExportResponse":{ + "type":"structure", + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

The identifier of the archive the email export was performed from.

" + }, + "ExportDestinationConfiguration":{ + "shape":"ExportDestinationConfiguration", + "documentation":"

Where the exported emails are being delivered.

" + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

The criteria used to filter emails included in the export.

" + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

The start of the timestamp range the exported emails cover.

" + }, + "MaxResults":{ + "shape":"ExportMaxResults", + "documentation":"

The maximum number of email items included in the export.

" + }, + "Status":{ + "shape":"ExportStatus", + "documentation":"

The current status of the export job.

" + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

The end of the date range the exported emails cover.

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

The response containing details of the specified archive export job.

" + }, + "GetArchiveMessageContentRequest":{ + "type":"structure", + "required":["ArchivedMessageId"], + "members":{ + "ArchivedMessageId":{ + "shape":"ArchivedMessageId", + "documentation":"

The unique identifier of the archived email message.

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

The request to get the textual content of a specific email message stored in an archive.

" + }, + "GetArchiveMessageContentResponse":{ + "type":"structure", + "members":{ + "Body":{ + "shape":"MessageBody", + "documentation":"

The textual body content of the email message.

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

The response containing the textual content of the requested archived email message.

" + }, + "GetArchiveMessageRequest":{ + "type":"structure", + "required":["ArchivedMessageId"], + "members":{ + "ArchivedMessageId":{ + "shape":"ArchivedMessageId", + "documentation":"

The unique identifier of the archived email message.

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

The request to get details of a specific email message stored in an archive.

" + }, + "GetArchiveMessageResponse":{ + "type":"structure", + "members":{ + "MessageDownloadLink":{ + "shape":"S3PresignedURL", + "documentation":"

A pre-signed URL to temporarily download the full message content.

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

The response containing details about the requested archived email message.

" + }, + "GetArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

The identifier of the archive to retrieve.

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

The request to retrieve details of an email archive.

" + }, + "GetArchiveResponse":{ + "type":"structure", + "required":[ + "ArchiveArn", + "ArchiveId", + "ArchiveName", + "ArchiveState", + "Retention" + ], + "members":{ + "ArchiveArn":{ + "shape":"ArchiveArn", + "documentation":"

The Amazon Resource Name (ARN) of the archive.

" + }, + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

The unique identifier of the archive.

" + }, + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

The unique name assigned to the archive.

" + }, + "ArchiveState":{ + "shape":"ArchiveState", + "documentation":"

The current state of the archive:

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the archive was created.

" + }, + "KmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"

The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.

" + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the archive was modified.

" + }, + "Retention":{ + "shape":"ArchiveRetention", + "documentation":"

The retention period for emails in this archive.

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

The response containing details of the requested archive.

" + }, + "GetArchiveSearchRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

The identifier of the search job to get details for.

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

The request to retrieve details of a specific archive search job.

" + }, + "GetArchiveSearchResponse":{ + "type":"structure", + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

The identifier of the archive the email search was performed in.

" + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

The criteria used to filter emails included in the search.

" + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

The start timestamp of the range the searched emails cover.

" + }, + "MaxResults":{ + "shape":"SearchMaxResults", + "documentation":"

The maximum number of search results to return.

" + }, + "Status":{ + "shape":"SearchStatus", + "documentation":"

The current status of the search job.

" + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

The end timestamp of the range the searched emails cover.

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

The response containing details of the specified archive search job.

" + }, + "GetArchiveSearchResultsRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

The identifier of the completed search job.

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

The request to retrieve results from a completed archive search job.

" + }, + "GetArchiveSearchResultsResponse":{ + "type":"structure", + "members":{ + "Rows":{ + "shape":"RowsList", + "documentation":"

The list of email result objects matching the search criteria.

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

The response containing search results from a completed archive search.

" + }, + "GetIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

The identifier of an ingress endpoint.

" + } + } + }, + "GetIngressPointResponse":{ + "type":"structure", + "required":[ + "IngressPointId", + "IngressPointName" + ], + "members":{ + "ARecord":{ + "shape":"IngressPointARecord", + "documentation":"

The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the ingress endpoint was created.

" + }, + "IngressPointArn":{ + "shape":"IngressPointArn", + "documentation":"

The Amazon Resource Name (ARN) of the ingress endpoint resource.

" + }, + "IngressPointAuthConfiguration":{ + "shape":"IngressPointAuthConfiguration", + "documentation":"

The authentication configuration of the ingress endpoint resource.

" + }, + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

The identifier of an ingress endpoint resource.

" + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

A user friendly name for the ingress endpoint.

" + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the ingress endpoint was last updated.

" + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of a rule set resource associated with the ingress endpoint.

" + }, + "Status":{ + "shape":"IngressPointStatus", + "documentation":"

The status of the ingress endpoint resource.

" + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy resource associated with the ingress endpoint.

" + }, + "Type":{ + "shape":"IngressPointType", + "documentation":"

The type of ingress endpoint.

" + } + } + }, + "GetRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{ + "shape":"RelayId", + "documentation":"

A unique relay identifier.

" + } + } + }, + "GetRelayResponse":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "Authentication":{ + "shape":"RelayAuthentication", + "documentation":"

The authentication attribute—contains the secret ARN where the customer relay server credentials are stored.

" + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the relay was created.

" + }, + "LastModifiedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when relay was last updated.

" + }, + "RelayArn":{ + "shape":"RelayArn", + "documentation":"

The Amazon Resource Name (ARN) of the relay.

" + }, + "RelayId":{ + "shape":"RelayId", + "documentation":"

The unique relay identifier.

" + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

The unique name of the relay.

" + }, + "ServerName":{ + "shape":"RelayServerName", + "documentation":"

The destination relay server address.

" + }, + "ServerPort":{ + "shape":"RelayServerPort", + "documentation":"

The destination relay server port.

" + } + } + }, + "GetRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of an existing rule set to be retrieved.

" + } + } + }, + "GetRuleSetResponse":{ + "type":"structure", + "required":[ + "CreatedDate", + "LastModificationDate", + "RuleSetArn", + "RuleSetId", + "RuleSetName", + "Rules" + ], + "members":{ + "CreatedDate":{ + "shape":"Timestamp", + "documentation":"

The date of when then rule set was created.

" + }, + "LastModificationDate":{ + "shape":"Timestamp", + "documentation":"

The date of when the rule set was last modified.

" + }, + "RuleSetArn":{ + "shape":"RuleSetArn", + "documentation":"

The Amazon Resource Name (ARN) of the rule set resource.

" + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of the rule set resource.

" + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

A user-friendly name for the rule set resource.

" + }, + "Rules":{ + "shape":"Rules", + "documentation":"

The rules contained in the rule set.

" + } + } + }, + "GetTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy resource.

" + } + } + }, + "GetTrafficPolicyResponse":{ + "type":"structure", + "required":[ + "TrafficPolicyId", + "TrafficPolicyName" + ], + "members":{ + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the traffic policy was created.

" + }, + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

The default action of the traffic policy.

" + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the traffic policy was last updated.

" + }, + "MaxMessageSizeBytes":{ + "shape":"MaxMessageSizeBytes", + "documentation":"

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

" + }, + "PolicyStatements":{ + "shape":"PolicyStatementList", + "documentation":"

The list of conditions which are in the traffic policy resource.

" + }, + "TrafficPolicyArn":{ + "shape":"TrafficPolicyArn", + "documentation":"

The Amazon Resource Name (ARN) of the traffic policy resource.

" + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy resource.

" + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

A user-friendly name for the traffic policy resource.

" + } + } + }, + "HeaderName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[xX]\\-[a-zA-Z0-9\\-]+$" + }, + "HeaderValue":{ + "type":"string", + "max":128, + "min":1 + }, + "IamRoleArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "IdOrArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "IdempotencyToken":{ + "type":"string", + "max":128, + "min":1 + }, + "IngressAnalysis":{ + "type":"structure", + "required":[ + "Analyzer", + "ResultField" + ], + "members":{ + "Analyzer":{ + "shape":"AnalyzerArn", + "documentation":"

The Amazon Resource Name (ARN) of an Add On.

" + }, + "ResultField":{ + "shape":"ResultField", + "documentation":"

The returned value from an Add On.

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

The Add On ARN and its returned value that is evaluated in a policy statement's conditional expression to either deny or block the incoming email.

" + }, + "IngressBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{ + "shape":"IngressBooleanToEvaluate", + "documentation":"

The operand on which to perform a boolean condition operation.

" + }, + "Operator":{ + "shape":"IngressBooleanOperator", + "documentation":"

The matching operator for a boolean condition expression.

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

The structure for a boolean condition matching on the incoming mail.

" + }, + "IngressBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "IngressBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Analysis":{ + "shape":"IngressAnalysis", + "documentation":"

The structure type for a boolean condition stating the Add On ARN and its returned value.

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

The union type representing the allowed types of operands for a boolean condition.

", + "union":true + }, + "IngressIpOperator":{ + "type":"string", + "enum":[ + "CIDR_MATCHES", + "NOT_CIDR_MATCHES" + ] + }, + "IngressIpToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"IngressIpv4Attribute", + "documentation":"

An enum type representing the allowed attribute types for an IP condition.

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

The structure for an IP based condition matching on the incoming mail.

", + "union":true + }, + "IngressIpv4Attribute":{ + "type":"string", + "enum":["SENDER_IP"] + }, + "IngressIpv4Expression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"IngressIpToEvaluate", + "documentation":"

The left hand side argument of an IP condition expression.

" + }, + "Operator":{ + "shape":"IngressIpOperator", + "documentation":"

The matching operator for an IP condition expression.

" + }, + "Values":{ + "shape":"Ipv4Cidrs", + "documentation":"

The right hand side argument of an IP condition expression.

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

The union type representing the allowed types for the left hand side of an IP condition.

" + }, + "IngressPoint":{ + "type":"structure", + "required":[ + "IngressPointId", + "IngressPointName", + "Status", + "Type" + ], + "members":{ + "ARecord":{ + "shape":"IngressPointARecord", + "documentation":"

The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.

" + }, + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

The identifier of the ingress endpoint resource.

" + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

A user friendly name for the ingress endpoint resource.

" + }, + "Status":{ + "shape":"IngressPointStatus", + "documentation":"

The status of the ingress endpoint resource.

" + }, + "Type":{ + "shape":"IngressPointType", + "documentation":"

The type of ingress endpoint resource.

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

The structure of an ingress endpoint resource.

" + }, + "IngressPointARecord":{"type":"string"}, + "IngressPointArn":{"type":"string"}, + "IngressPointAuthConfiguration":{ + "type":"structure", + "members":{ + "IngressPointPasswordConfiguration":{ + "shape":"IngressPointPasswordConfiguration", + "documentation":"

The ingress endpoint password configuration for the ingress endpoint resource.

" + }, + "SecretArn":{ + "shape":"SecretArn", + "documentation":"

The ingress endpoint SecretsManager::Secret ARN configuration for the ingress endpoint resource.

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

The authentication configuration for the ingress endpoint resource.

" + }, + "IngressPointConfiguration":{ + "type":"structure", + "members":{ + "SecretArn":{ + "shape":"SecretArn", + "documentation":"

The SecretsManager::Secret ARN of the ingress endpoint resource.

" + }, + "SmtpPassword":{ + "shape":"SmtpPassword", + "documentation":"

The password of the ingress endpoint resource.

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

The configuration of the ingress endpoint resource.

", + "union":true + }, + "IngressPointId":{ + "type":"string", + "max":100, + "min":1 + }, + "IngressPointName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"^[A-Za-z0-9_\\-]+$" + }, + "IngressPointPasswordConfiguration":{ + "type":"structure", + "members":{ + "PreviousSmtpPasswordExpiryTimestamp":{ + "shape":"Timestamp", + "documentation":"

The previous password expiry timestamp of the ingress endpoint resource.

" + }, + "PreviousSmtpPasswordVersion":{ + "shape":"String", + "documentation":"

The previous password version of the ingress endpoint resource.

" + }, + "SmtpPasswordVersion":{ + "shape":"String", + "documentation":"

The current password expiry timestamp of the ingress endpoint resource.

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

The password configuration of the ingress endpoint resource.

" + }, + "IngressPointStatus":{ + "type":"string", + "enum":[ + "PROVISIONING", + "DEPROVISIONING", + "UPDATING", + "ACTIVE", + "CLOSED", + "FAILED" + ] + }, + "IngressPointStatusToUpdate":{ + "type":"string", + "enum":[ + "ACTIVE", + "CLOSED" + ] + }, + "IngressPointType":{ + "type":"string", + "enum":[ + "OPEN", + "AUTH" + ] + }, + "IngressPointsList":{ + "type":"list", + "member":{"shape":"IngressPoint"} + }, + "IngressStringEmailAttribute":{ + "type":"string", + "enum":["RECIPIENT"] + }, + "IngressStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"IngressStringToEvaluate", + "documentation":"

The left hand side argument of a string condition expression.

" + }, + "Operator":{ + "shape":"IngressStringOperator", + "documentation":"

The matching operator for a string condition expression.

" + }, + "Values":{ + "shape":"StringList", + "documentation":"

The right hand side argument of a string condition expression.

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

The structure for a string based condition matching on the incoming mail.

" + }, + "IngressStringOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS" + ] + }, + "IngressStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"IngressStringEmailAttribute", + "documentation":"

The enum type representing the allowed attribute types for a string condition.

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

The union type representing the allowed types for the left hand side of a string condition.

", + "union":true + }, + "IngressTlsAttribute":{ + "type":"string", + "enum":["TLS_PROTOCOL"] + }, + "IngressTlsProtocolAttribute":{ + "type":"string", + "enum":[ + "TLS1_2", + "TLS1_3" + ] + }, + "IngressTlsProtocolExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Value" + ], + "members":{ + "Evaluate":{ + "shape":"IngressTlsProtocolToEvaluate", + "documentation":"

The left hand side argument of a TLS condition expression.

" + }, + "Operator":{ + "shape":"IngressTlsProtocolOperator", + "documentation":"

The matching operator for a TLS condition expression.

" + }, + "Value":{ + "shape":"IngressTlsProtocolAttribute", + "documentation":"

The right hand side argument of a TLS condition expression.

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

The structure for a TLS related condition matching on the incoming mail.

" + }, + "IngressTlsProtocolOperator":{ + "type":"string", + "enum":[ + "MINIMUM_TLS_VERSION", + "IS" + ] + }, + "IngressTlsProtocolToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"IngressTlsAttribute", + "documentation":"

The enum type representing the allowed attribute types for the TLS condition.

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

The union type representing the allowed types for the left hand side of a TLS condition.

", + "union":true + }, + "Integer":{ + "type":"integer", + "box":true + }, + "Ipv4Cidr":{ + "type":"string", + "pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/([0-9]|[12][0-9]|3[0-2])$" + }, + "Ipv4Cidrs":{ + "type":"list", + "member":{"shape":"Ipv4Cidr"} + }, + "KmsKeyArn":{ + "type":"string", + "pattern":"^arn:aws(|-cn|-us-gov):kms:[a-z0-9-]{1,20}:[0-9]{12}:(key|alias)/.+$" + }, + "KmsKeyId":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^[a-zA-Z0-9-:/]+$" + }, + "ListAddonInstancesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

" + } + } + }, + "ListAddonInstancesResponse":{ + "type":"structure", + "members":{ + "AddonInstances":{ + "shape":"AddonInstances", + "documentation":"

The list of ingress endpoints.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + } + } + }, + "ListAddonSubscriptionsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

" + } + } + }, + "ListAddonSubscriptionsResponse":{ + "type":"structure", + "members":{ + "AddonSubscriptions":{ + "shape":"AddonSubscriptions", + "documentation":"

The list of ingress endpoints.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + } + } + }, + "ListArchiveExportsRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

The identifier of the archive.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of archive export jobs that are returned per call. You can use NextToken to obtain further pages of archives.

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

The request to list archive export jobs in your account.

" + }, + "ListArchiveExportsResponse":{ + "type":"structure", + "members":{ + "Exports":{ + "shape":"ExportSummaryList", + "documentation":"

The list of export job identifiers and statuses.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If present, use to retrieve the next page of results.

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

The response containing a list of archive export jobs and their statuses.

" + }, + "ListArchiveSearchesRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

The identifier of the archive.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives.

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

The request to list archive search jobs in your account.

" + }, + "ListArchiveSearchesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If present, use to retrieve the next page of results.

" + }, + "Searches":{ + "shape":"SearchSummaryList", + "documentation":"

The list of search job identifiers and statuses.

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

The response containing a list of archive search jobs and their statuses.

" + }, + "ListArchivesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of archives that are returned per call. You can use NextToken to obtain further pages of archives.

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

The request to list email archives in your account.

" + }, + "ListArchivesResponse":{ + "type":"structure", + "required":["Archives"], + "members":{ + "Archives":{ + "shape":"ArchivesList", + "documentation":"

The list of archive details.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If present, use to retrieve the next page of results.

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

The response containing a list of your email archives.

" + }, + "ListIngressPointsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

" + } + } + }, + "ListIngressPointsResponse":{ + "type":"structure", + "members":{ + "IngressPoints":{ + "shape":"IngressPointsList", + "documentation":"

The list of ingress endpoints.

" + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + } + } + }, + "ListRelaysRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

" + }, + "PageSize":{ + "shape":"Integer", + "documentation":"

The number of relays to be returned in one request.

" + } + } + }, + "ListRelaysResponse":{ + "type":"structure", + "required":["Relays"], + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + }, + "Relays":{ + "shape":"Relays", + "documentation":"

The list of returned relays.

" + } + } + }, + "ListRuleSetsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.

" + } + } + }, + "ListRuleSetsResponse":{ + "type":"structure", + "required":["RuleSets"], + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + }, + "RuleSets":{ + "shape":"RuleSets", + "documentation":"

The list of rule sets.

" + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"TaggableResourceArn", + "documentation":"

The Amazon Resource Name (ARN) of the resource to retrieve tags from.

" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + } + }, + "ListTrafficPoliciesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

" + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

The maximum number of traffic policy resources that are returned per call. You can use NextToken to obtain further traffic policies.

" + } + } + }, + "ListTrafficPoliciesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" + }, + "TrafficPolicies":{ + "shape":"TrafficPolicyList", + "documentation":"

The list of traffic policies.

" + } + } + }, + "MailFrom":{ + "type":"string", + "enum":[ + "REPLACE", + "PRESERVE" + ] + }, + "MaxMessageSizeBytes":{ + "type":"integer", + "box":true, + "min":1 + }, + "MessageBody":{ + "type":"structure", + "members":{ + "Html":{ + "shape":"String", + "documentation":"

The HTML body content of the message.

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

A flag indicating if the email was malformed.

" + }, + "Text":{ + "shape":"String", + "documentation":"

The plain text body content of the message.

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

The textual body content of an email message.

" + }, + "NameOrArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "NoAuthentication":{ + "type":"structure", + "members":{ + }, + "documentation":"

Explicitly indicate that the relay destination server does not require SMTP credential authentication.

" + }, + "PageSize":{ + "type":"integer", + "box":true, + "max":50, + "min":1 + }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1 + }, + "PolicyCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{ + "shape":"IngressBooleanExpression", + "documentation":"

This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + }, + "IpExpression":{ + "shape":"IngressIpv4Expression", + "documentation":"

This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + }, + "StringExpression":{ + "shape":"IngressStringExpression", + "documentation":"

This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

" + }, + "TlsExpression":{ + "shape":"IngressTlsProtocolExpression", + "documentation":"

This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

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

The email traffic filtering conditions which are contained in a traffic policy resource.

", + "union":true + }, + "PolicyConditions":{ + "type":"list", + "member":{"shape":"PolicyCondition"}, + "min":1 + }, + "PolicyStatement":{ + "type":"structure", + "required":[ + "Action", + "Conditions" + ], + "members":{ + "Action":{ + "shape":"AcceptAction", + "documentation":"

The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

" + }, + "Conditions":{ + "shape":"PolicyConditions", + "documentation":"

The list of conditions to apply to incoming messages for filtering email traffic.

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

The structure containing traffic policy conditions and actions.

" + }, + "PolicyStatementList":{ + "type":"list", + "member":{"shape":"PolicyStatement"} + }, + "Recipients":{ + "type":"list", + "member":{"shape":"EmailAddress"}, + "max":100, + "min":1 + }, + "Relay":{ + "type":"structure", + "members":{ + "LastModifiedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the relay was last modified.

" + }, + "RelayId":{ + "shape":"RelayId", + "documentation":"

The unique relay identifier.

" + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

The unique relay name.

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

The relay resource that can be used as a rule to relay receiving emails to the destination relay server.

" + }, + "RelayAction":{ + "type":"structure", + "required":["Relay"], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.

" + }, + "MailFrom":{ + "shape":"MailFrom", + "documentation":"

This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.

" + }, + "Relay":{ + "shape":"IdOrArn", + "documentation":"

The identifier of the relay resource to be used when relaying an email.

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

The action relays the email via SMTP to another specific SMTP server.

" + }, + "RelayArn":{"type":"string"}, + "RelayAuthentication":{ + "type":"structure", + "members":{ + "NoAuthentication":{ + "shape":"NoAuthentication", + "documentation":"

Keep an empty structure if the relay destination server does not require SMTP credential authentication.

" + }, + "SecretArn":{ + "shape":"SecretArn", + "documentation":"

The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.

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

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored, or specify an empty NoAuthentication structure if the relay destination server does not require SMTP credential authentication.

", + "union":true + }, + "RelayId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-]+$" + }, + "RelayName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-_]+$" + }, + "RelayServerName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-\\.]+$" + }, + "RelayServerPort":{ + "type":"integer", + "box":true, + "max":65535, + "min":1 + }, + "Relays":{ + "type":"list", + "member":{"shape":"Relay"} + }, + "ReplaceRecipientAction":{ + "type":"structure", + "members":{ + "ReplaceWith":{ + "shape":"Recipients", + "documentation":"

This action specifies the replacement recipient email addresses to insert.

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

This action replaces the email envelope recipients with the given list of recipients. If the condition of this action applies only to a subset of recipients, only those recipients are replaced with the recipients specified in the action. The message contents and headers are unaffected by this action, only the envelope recipients are updated.

" + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

Occurs when a requested resource is not found.

", + "exception":true + }, + "ResultField":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[\\sa-zA-Z0-9_]+$" + }, + "RetentionPeriod":{ + "type":"string", + "enum":[ + "THREE_MONTHS", + "SIX_MONTHS", + "NINE_MONTHS", + "ONE_YEAR", + "EIGHTEEN_MONTHS", + "TWO_YEARS", + "THIRTY_MONTHS", + "THREE_YEARS", + "FOUR_YEARS", + "FIVE_YEARS", + "SIX_YEARS", + "SEVEN_YEARS", + "EIGHT_YEARS", + "NINE_YEARS", + "TEN_YEARS", + "PERMANENT" + ] + }, + "Row":{ + "type":"structure", + "members":{ + "ArchivedMessageId":{ + "shape":"ArchivedMessageId", + "documentation":"

The unique identifier of the archived message.

" + }, + "Cc":{ + "shape":"String", + "documentation":"

The email addresses in the CC header.

" + }, + "Date":{ + "shape":"String", + "documentation":"

The date the email was sent.

" + }, + "From":{ + "shape":"String", + "documentation":"

The email address of the sender.

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

A flag indicating if the email has attachments.

" + }, + "InReplyTo":{ + "shape":"String", + "documentation":"

The email message ID this is a reply to.

" + }, + "MessageId":{ + "shape":"String", + "documentation":"

The unique message ID of the email.

" + }, + "ReceivedHeaders":{ + "shape":"EmailReceivedHeadersList", + "documentation":"

The received headers from the email delivery path.

" + }, + "ReceivedTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the email was received.

" + }, + "Subject":{ + "shape":"String", + "documentation":"

The subject header value of the email.

" + }, + "To":{ + "shape":"String", + "documentation":"

The email addresses in the To header.

" + }, + "XMailer":{ + "shape":"String", + "documentation":"

The user agent that sent the email.

" + }, + "XOriginalMailer":{ + "shape":"String", + "documentation":"

The original user agent that sent the email.

" + }, + "XPriority":{ + "shape":"String", + "documentation":"

The priority level of the email.

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

A result row containing metadata for an archived email message.

" + }, + "RowsList":{ + "type":"list", + "member":{"shape":"Row"} + }, + "Rule":{ + "type":"structure", + "required":["Actions"], + "members":{ + "Actions":{ + "shape":"RuleActions", + "documentation":"

The list of actions to execute when the conditions match the incoming email, and none of the \"unless conditions\" match.

" + }, + "Conditions":{ + "shape":"RuleConditions", + "documentation":"

The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any \"unless conditions\"

" + }, + "Name":{ + "shape":"RuleName", + "documentation":"

The user-friendly name of the rule.

" + }, + "Unless":{ + "shape":"RuleConditions", + "documentation":"

The \"unless conditions\" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.

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

A rule contains conditions, \"unless conditions\" and actions. For each envelope recipient of an email, if all conditions match and none of the \"unless conditions\" match, then all of the actions are executed sequentially. If no conditions are provided, the rule always applies and the actions are implicitly executed. If only \"unless conditions\" are provided, the rule applies if the email does not match the evaluation of the \"unless conditions\".

" + }, + "RuleAction":{ + "type":"structure", + "members":{ + "AddHeader":{ + "shape":"AddHeaderAction", + "documentation":"

This action adds a header. This can be used to add arbitrary email headers.

" + }, + "Archive":{ + "shape":"ArchiveAction", + "documentation":"

This action archives the email. This can be used to deliver an email to an archive.

" + }, + "DeliverToMailbox":{ + "shape":"DeliverToMailboxAction", + "documentation":"

This action delivers an email to a WorkMail mailbox.

" + }, + "Drop":{ + "shape":"DropAction", + "documentation":"

This action terminates the evaluation of rules in the rule set.

" + }, + "Relay":{ + "shape":"RelayAction", + "documentation":"

This action relays the email to another SMTP server.

" + }, + "ReplaceRecipient":{ + "shape":"ReplaceRecipientAction", + "documentation":"

The action replaces certain or all recipients with a different set of recipients.

" + }, + "Send":{ + "shape":"SendAction", + "documentation":"

This action sends the email to the internet.

" + }, + "WriteToS3":{ + "shape":"S3Action", + "documentation":"

This action writes the MIME content of the email to an S3 bucket.

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

The action for a rule to take. Only one of the contained actions can be set.

", + "union":true + }, + "RuleActions":{ + "type":"list", + "member":{"shape":"RuleAction"}, + "max":10, + "min":1 + }, + "RuleBooleanEmailAttribute":{ + "type":"string", + "enum":[ + "READ_RECEIPT_REQUESTED", + "TLS", + "TLS_WRAPPED" + ] + }, + "RuleBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{ + "shape":"RuleBooleanToEvaluate", + "documentation":"

The operand on which to perform a boolean condition operation.

" + }, + "Operator":{ + "shape":"RuleBooleanOperator", + "documentation":"

The matching operator for a boolean condition expression.

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

A boolean expression to be used in a rule condition.

" + }, + "RuleBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "RuleBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleBooleanEmailAttribute", + "documentation":"

The boolean type representing the allowed attribute types for an email.

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

The union type representing the allowed types of operands for a boolean condition.

", + "union":true + }, + "RuleCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{ + "shape":"RuleBooleanExpression", + "documentation":"

The condition applies to a boolean expression passed in this field.

" + }, + "DmarcExpression":{ + "shape":"RuleDmarcExpression", + "documentation":"

The condition applies to a DMARC policy expression passed in this field.

" + }, + "IpExpression":{ + "shape":"RuleIpExpression", + "documentation":"

The condition applies to an IP address expression passed in this field.

" + }, + "NumberExpression":{ + "shape":"RuleNumberExpression", + "documentation":"

The condition applies to a number expression passed in this field.

" + }, + "StringExpression":{ + "shape":"RuleStringExpression", + "documentation":"

The condition applies to a string expression passed in this field.

" + }, + "VerdictExpression":{ + "shape":"RuleVerdictExpression", + "documentation":"

The condition applies to a verdict expression passed in this field.

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

The conditional expression used to evaluate an email for determining if a rule action should be taken.

", + "union":true + }, + "RuleConditions":{ + "type":"list", + "member":{"shape":"RuleCondition"}, + "max":10, + "min":0 + }, + "RuleDmarcExpression":{ + "type":"structure", + "required":[ + "Operator", + "Values" + ], + "members":{ + "Operator":{ + "shape":"RuleDmarcOperator", + "documentation":"

The operator to apply to the DMARC policy of the incoming email.

" + }, + "Values":{ + "shape":"RuleDmarcValueList", + "documentation":"

The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.

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

A DMARC policy expression. The condition matches if the given DMARC policy matches that of the incoming email.

" + }, + "RuleDmarcOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS" + ] + }, + "RuleDmarcPolicy":{ + "type":"string", + "enum":[ + "NONE", + "QUARANTINE", + "REJECT" + ] + }, + "RuleDmarcValueList":{ + "type":"list", + "member":{"shape":"RuleDmarcPolicy"}, + "max":10, + "min":1 + }, + "RuleIpEmailAttribute":{ + "type":"string", + "enum":["SOURCE_IP"] + }, + "RuleIpExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"RuleIpToEvaluate", + "documentation":"

The IP address to evaluate in this condition.

" + }, + "Operator":{ + "shape":"RuleIpOperator", + "documentation":"

The operator to evaluate the IP address.

" + }, + "Values":{ + "shape":"RuleIpValueList", + "documentation":"

The IP CIDR blocks in format \"x.y.z.w/n\" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.

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

An IP address expression matching certain IP addresses within a given range of IP addresses.

" + }, + "RuleIpOperator":{ + "type":"string", + "enum":[ + "CIDR_MATCHES", + "NOT_CIDR_MATCHES" + ] + }, + "RuleIpStringValue":{ + "type":"string", + "max":18, + "min":1, + "pattern":"^(([0-9]|.|/)*)$" + }, + "RuleIpToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleIpEmailAttribute", + "documentation":"

The attribute of the email to evaluate.

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

The IP address to evaluate for this condition.

", + "union":true + }, + "RuleIpValueList":{ + "type":"list", + "member":{"shape":"RuleIpStringValue"}, + "max":10, + "min":1 + }, + "RuleName":{ + "type":"string", + "max":32, + "min":1, + "pattern":"^[a-zA-Z0-9_.-]+$" + }, + "RuleNumberEmailAttribute":{ + "type":"string", + "enum":["MESSAGE_SIZE"] + }, + "RuleNumberExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Value" + ], + "members":{ + "Evaluate":{ + "shape":"RuleNumberToEvaluate", + "documentation":"

The number to evaluate in a numeric condition expression.

" + }, + "Operator":{ + "shape":"RuleNumberOperator", + "documentation":"

The operator for a numeric condition expression.

" + }, + "Value":{ + "shape":"Double", + "documentation":"

The value to evaluate in a numeric condition expression.

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

A number expression to match numeric conditions with integers from the incoming email.

" + }, + "RuleNumberOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "LESS_THAN", + "GREATER_THAN", + "LESS_THAN_OR_EQUAL", + "GREATER_THAN_OR_EQUAL" + ] + }, + "RuleNumberToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleNumberEmailAttribute", + "documentation":"

An email attribute that is used as the number to evaluate.

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

The number to evaluate in a numeric condition expression.

", + "union":true + }, + "RuleSet":{ + "type":"structure", + "members":{ + "LastModificationDate":{ + "shape":"Timestamp", + "documentation":"

The last modification date of the rule set.

" + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of the rule set.

" + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

A user-friendly name for the rule set.

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

A rule set contains a list of rules that are evaluated in order. Each rule is evaluated sequentially for each email.

" + }, + "RuleSetArn":{"type":"string"}, + "RuleSetId":{ + "type":"string", + "max":100, + "min":1 + }, + "RuleSetName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9_.-]+$" + }, + "RuleSets":{ + "type":"list", + "member":{"shape":"RuleSet"} + }, + "RuleStringEmailAttribute":{ + "type":"string", + "enum":[ + "MAIL_FROM", + "HELO", + "RECIPIENT", + "SENDER", + "FROM", + "SUBJECT", + "TO", + "CC" + ] + }, + "RuleStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"RuleStringToEvaluate", + "documentation":"

The string to evaluate in a string condition expression.

" + }, + "Operator":{ + "shape":"RuleStringOperator", + "documentation":"

The matching operator for a string condition expression.

" + }, + "Values":{ + "shape":"RuleStringList", + "documentation":"

The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.

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

A string expression is evaluated against strings or substrings of the email.

" + }, + "RuleStringList":{ + "type":"list", + "member":{"shape":"RuleStringValue"}, + "max":10, + "min":1 + }, + "RuleStringOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS" + ] + }, + "RuleStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleStringEmailAttribute", + "documentation":"

The email attribute to evaluate in a string condition expression.

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

The string to evaluate in a string condition expression.

", + "union":true + }, + "RuleStringValue":{ + "type":"string", + "max":4096, + "min":1 + }, + "RuleVerdict":{ + "type":"string", + "enum":[ + "PASS", + "FAIL", + "GRAY", + "PROCESSING_FAILED" + ] + }, + "RuleVerdictAttribute":{ + "type":"string", + "enum":[ + "SPF", + "DKIM" + ] + }, + "RuleVerdictExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"RuleVerdictToEvaluate", + "documentation":"

The verdict to evaluate in a verdict condition expression.

" + }, + "Operator":{ + "shape":"RuleVerdictOperator", + "documentation":"

The matching operator for a verdict condition expression.

" + }, + "Values":{ + "shape":"RuleVerdictValueList", + "documentation":"

The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

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

A verdict expression is evaluated against verdicts of the email.

" + }, + "RuleVerdictOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS" + ] + }, + "RuleVerdictToEvaluate":{ + "type":"structure", + "members":{ + "Analysis":{ + "shape":"Analysis", + "documentation":"

The Add On ARN and its returned value to evaluate in a verdict condition expression.

" + }, + "Attribute":{ + "shape":"RuleVerdictAttribute", + "documentation":"

The email verdict attribute to evaluate in a string verdict expression.

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

The verdict to evaluate in a verdict condition expression.

", + "union":true + }, + "RuleVerdictValueList":{ + "type":"list", + "member":{"shape":"RuleVerdict"}, + "max":10, + "min":1 + }, + "Rules":{ + "type":"list", + "member":{"shape":"Rule"}, + "max":40, + "min":0 + }, + "S3Action":{ + "type":"structure", + "required":[ + "RoleArn", + "S3Bucket" + ], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.

" + }, + "RoleArn":{ + "shape":"IamRoleArn", + "documentation":"

The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.

" + }, + "S3Bucket":{ + "shape":"S3Bucket", + "documentation":"

The bucket name of the S3 bucket to write to.

" + }, + "S3Prefix":{ + "shape":"S3Prefix", + "documentation":"

The S3 prefix to use for the write to the s3 bucket.

" + }, + "S3SseKmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"

The KMS Key ID to use to encrypt the message in S3.

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

Writes the MIME content of the email to an S3 bucket.

" + }, + "S3Bucket":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^[a-zA-Z0-9.-]+$" + }, + "S3ExportDestinationConfiguration":{ + "type":"structure", + "members":{ + "S3Location":{ + "shape":"S3Location", + "documentation":"

The S3 location to deliver the exported email data.

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

The configuration for exporting email data to an Amazon S3 bucket.

" + }, + "S3Location":{ + "type":"string", + "pattern":"^s3://[a-zA-Z0-9.-]{3,63}(/[a-zA-Z0-9!_.*'()/-]*)*$" + }, + "S3Prefix":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^[a-zA-Z0-9!_.*'()/-]+$" + }, + "S3PresignedURL":{"type":"string"}, + "SearchId":{ + "type":"string", + "max":64, + "min":1 + }, + "SearchMaxResults":{ + "type":"integer", + "box":true, + "max":1000, + "min":0 + }, + "SearchState":{ + "type":"string", + "enum":[ + "QUEUED", + "RUNNING", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "SearchStatus":{ + "type":"structure", + "members":{ + "CompletionTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the search completed (if finished).

" + }, + "ErrorMessage":{ + "shape":"ErrorMessage", + "documentation":"

An error message if the search failed.

" + }, + "State":{ + "shape":"SearchState", + "documentation":"

The current state of the search job.

" + }, + "SubmissionTimestamp":{ + "shape":"Timestamp", + "documentation":"

The timestamp of when the search was submitted.

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

The current status of an archive search job.

" + }, + "SearchSummary":{ + "type":"structure", + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

The unique identifier of the search job.

" + }, + "Status":{ + "shape":"SearchStatus", + "documentation":"

The current status of the search job.

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

Summary details of an archive search job.

" + }, + "SearchSummaryList":{ + "type":"list", + "member":{"shape":"SearchSummary"} + }, + "SecretArn":{ + "type":"string", + "pattern":"^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$" + }, + "SendAction":{ + "type":"structure", + "required":["RoleArn"], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.

" + }, + "RoleArn":{ + "shape":"IamRoleArn", + "documentation":"

The Amazon Resource Name (ARN) of the role to use for this action. This role must have access to the ses:SendRawEmail API.

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

Sends the email to the internet using the ses:SendRawEmail API.

" + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

Occurs when an operation exceeds a predefined service quota or limit.

", + "exception":true + }, + "SmtpPassword":{ + "type":"string", + "max":64, + "min":8, + "pattern":"^[A-Za-z0-9!@#$%^&*()_+\\-=\\[\\]{}|.,?]+$", + "sensitive":true + }, + "StartArchiveExportRequest":{ + "type":"structure", + "required":[ + "ArchiveId", + "ExportDestinationConfiguration", + "FromTimestamp", + "ToTimestamp" + ], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

The identifier of the archive to export emails from.

" + }, + "ExportDestinationConfiguration":{ + "shape":"ExportDestinationConfiguration", + "documentation":"

Details on where to deliver the exported email data.

" + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

Criteria to filter which emails are included in the export.

" + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

The start of the timestamp range to include emails from.

" + }, + "MaxResults":{ + "shape":"ExportMaxResults", + "documentation":"

The maximum number of email items to include in the export.

" + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

The end of the timestamp range to include emails from.

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

The request to initiate an export of emails from an archive.

" + }, + "StartArchiveExportResponse":{ + "type":"structure", + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

The unique identifier for the initiated export job.

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

The response from initiating an archive export.

" + }, + "StartArchiveSearchRequest":{ + "type":"structure", + "required":[ + "ArchiveId", + "FromTimestamp", + "MaxResults", + "ToTimestamp" + ], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

The identifier of the archive to search emails in.

" + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

Criteria to filter which emails are included in the search results.

" + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

The start timestamp of the range to search emails from.

" + }, + "MaxResults":{ + "shape":"SearchMaxResults", + "documentation":"

The maximum number of search results to return.

" + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

The end timestamp of the range to search emails from.

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

The request to initiate a search across emails in an archive.

" + }, + "StartArchiveSearchResponse":{ + "type":"structure", + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

The unique identifier for the initiated search job.

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

The response from initiating an archive search.

" + }, + "StopArchiveExportRequest":{ + "type":"structure", + "required":["ExportId"], + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

The identifier of the export job to stop.

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

The request to stop an in-progress archive export job.

" + }, + "StopArchiveExportResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

The response indicating if the request to stop the export job succeeded.

On success, returns an HTTP 200 status code. On failure, returns an error message.

" + }, + "StopArchiveSearchRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

The identifier of the search job to stop.

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

The request to stop an in-progress archive search job.

" + }, + "StopArchiveSearchResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

The response indicating if the request to stop the search job succeeded.

On success, returns an HTTP 200 status code. On failure, returns an error message.

" + }, + "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "StringValueList":{ + "type":"list", + "member":{"shape":"String"}, + "max":10, + "min":1 + }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{ + "shape":"TagKey", + "documentation":"

The key of the key-value tag.

" + }, + "Value":{ + "shape":"TagValue", + "documentation":"

The value of the key-value tag.

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

A key-value pair (the value is optional), that you can define and assign to Amazon Web Services resources.

" + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[a-zA-Z0-9/_\\+=\\.:@\\-]+$", + "sensitive":true + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{ + "shape":"TaggableResourceArn", + "documentation":"

The Amazon Resource Name (ARN) of the resource that you want to tag.

" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

" + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^[a-zA-Z0-9/_\\+=\\.:@\\-]*$", + "sensitive":true + }, + "TaggableResourceArn":{ + "type":"string", + "max":1011, + "min":20, + "pattern":"^arn:aws(|-cn|-us-gov):ses:[a-z0-9-]{1,20}:[0-9]{12}:(mailmanager-|addon-).+$" + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.

", + "exception":true + }, + "Timestamp":{"type":"timestamp"}, + "TrafficPolicy":{ + "type":"structure", + "required":[ + "DefaultAction", + "TrafficPolicyId", + "TrafficPolicyName" + ], + "members":{ + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

" + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy resource.

" + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

A user-friendly name of the traffic policy resource.

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

The structure of a traffic policy resource which is a container for policy statements.

" + }, + "TrafficPolicyArn":{"type":"string"}, + "TrafficPolicyId":{ + "type":"string", + "max":100, + "min":1 + }, + "TrafficPolicyList":{ + "type":"list", + "member":{"shape":"TrafficPolicy"} + }, + "TrafficPolicyName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"^[A-Za-z0-9_\\-]+$" + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{ + "shape":"TaggableResourceArn", + "documentation":"

The Amazon Resource Name (ARN) of the resource that you want to untag.

" + }, + "TagKeys":{ + "shape":"TagKeyList", + "documentation":"

The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

The identifier of the archive to update.

" + }, + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

A new, unique name for the archive.

" + }, + "Retention":{ + "shape":"ArchiveRetention", + "documentation":"

A new retention period for emails in the archive.

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

The request to update properties of an existing email archive.

" + }, + "UpdateArchiveResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

The response indicating if the archive update succeeded or failed.

On success, returns an HTTP 200 status code. On failure, returns an error message.

" + }, + "UpdateIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointConfiguration":{ + "shape":"IngressPointConfiguration", + "documentation":"

If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

" + }, + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

The identifier for the ingress endpoint you want to update.

" + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

A user friendly name for the ingress endpoint resource.

" + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of an existing rule set that you attach to an ingress endpoint resource.

" + }, + "StatusToUpdate":{ + "shape":"IngressPointStatusToUpdate", + "documentation":"

The update status of an ingress endpoint.

" + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

" + } + } + }, + "UpdateIngressPointResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "Authentication":{ + "shape":"RelayAuthentication", + "documentation":"

Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

" + }, + "RelayId":{ + "shape":"RelayId", + "documentation":"

The unique relay identifier.

" + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

The name of the relay resource.

" + }, + "ServerName":{ + "shape":"RelayServerName", + "documentation":"

The destination relay server address.

" + }, + "ServerPort":{ + "shape":"RelayServerPort", + "documentation":"

The destination relay server port.

" + } + } + }, + "UpdateRelayResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

The identifier of a rule set you want to update.

" + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

A user-friendly name for the rule set resource.

" + }, + "Rules":{ + "shape":"Rules", + "documentation":"

A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.

" + } + } + }, + "UpdateRuleSetResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

" + }, + "MaxMessageSizeBytes":{ + "shape":"MaxMessageSizeBytes", + "documentation":"

The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

" + }, + "PolicyStatements":{ + "shape":"PolicyStatementList", + "documentation":"

The list of conditions to be updated for filtering email traffic.

" + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

The identifier of the traffic policy that you want to update.

" + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

A user-friendly name for the traffic policy resource.

" + } + } + }, + "UpdateTrafficPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

The request validation has failed. For details, see the accompanying error message.

", + "exception":true + } + }, + "documentation":"

AWS SES Mail Manager API

AWS SES Mail Manager API contains operations and data types that comprise the Mail Manager feature of Amazon Simple Email Service.

Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen your organization's email infrastructure, simplify email workflow management, and streamline email compliance control. To learn more, see the Mail Manager chapter in the Amazon SES Developer Guide.

" +} diff --git a/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.paginators.json b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.paginators.json new file mode 100644 index 000000000000..70309f1c2ddb --- /dev/null +++ b/generator/ServiceModels/mailmanager/mailmanager-2023-10-17.paginators.json @@ -0,0 +1,58 @@ +{ + "pagination": { + "ListAddonInstances": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "AddonInstances" + }, + "ListAddonSubscriptions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "AddonSubscriptions" + }, + "ListArchiveExports": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "Exports" + }, + "ListArchiveSearches": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "Searches" + }, + "ListArchives": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "Archives" + }, + "ListIngressPoints": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "IngressPoints" + }, + "ListRelays": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "Relays" + }, + "ListRuleSets": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "RuleSets" + }, + "ListTrafficPolicies": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize", + "result_key": "TrafficPolicies" + } + } +} diff --git a/generator/ServiceModels/mailmanager/metadata.json b/generator/ServiceModels/mailmanager/metadata.json new file mode 100644 index 000000000000..565c87f56c25 --- /dev/null +++ b/generator/ServiceModels/mailmanager/metadata.json @@ -0,0 +1,5 @@ +{ + "active": true, + "synopsis": "This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.", + "generate-client-constructors": true +} \ No newline at end of file diff --git a/generator/ServiceModels/mailmanager/smoke.json b/generator/ServiceModels/mailmanager/smoke.json new file mode 100644 index 000000000000..a9756813e4af --- /dev/null +++ b/generator/ServiceModels/mailmanager/smoke.json @@ -0,0 +1,6 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + ] +} diff --git a/generator/ServiceModels/mailmanager/waiters2.json b/generator/ServiceModels/mailmanager/waiters2.json new file mode 100644 index 000000000000..13f60ee66be6 --- /dev/null +++ b/generator/ServiceModels/mailmanager/waiters2.json @@ -0,0 +1,5 @@ +{ + "version": 2, + "waiters": { + } +} diff --git a/sdk/AWSSDK.CodeAnalysis.sln b/sdk/AWSSDK.CodeAnalysis.sln index 8c4e21e54638..2a78d788e616 100644 --- a/sdk/AWSSDK.CodeAnalysis.sln +++ b/sdk/AWSSDK.CodeAnalysis.sln @@ -451,6 +451,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MachineLearning.Code EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Macie2.CodeAnalysis", "code-analysis/ServiceAnalysis/Macie2/AWSSDK.Macie2.CodeAnalysis.csproj", "{D774395B-8CE5-4430-9EE3-9C6E3D299326}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.CodeAnalysis", "code-analysis/ServiceAnalysis/MailManager/AWSSDK.MailManager.CodeAnalysis.csproj", "{FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E}" +EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MainframeModernization.CodeAnalysis", "code-analysis/ServiceAnalysis/MainframeModernization/AWSSDK.MainframeModernization.CodeAnalysis.csproj", "{D8054A77-57C9-4B04-BDAF-D556DAECF775}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.ManagedBlockchain.CodeAnalysis", "code-analysis/ServiceAnalysis/ManagedBlockchain/AWSSDK.ManagedBlockchain.CodeAnalysis.csproj", "{26BEB3CC-1EB9-472C-91F4-F99B549826D9}" @@ -1670,6 +1672,10 @@ Global {D774395B-8CE5-4430-9EE3-9C6E3D299326}.Debug|Any CPU.Build.0 = Debug|Any CPU {D774395B-8CE5-4430-9EE3-9C6E3D299326}.Release|Any CPU.ActiveCfg = Release|Any CPU {D774395B-8CE5-4430-9EE3-9C6E3D299326}.Release|Any CPU.Build.0 = Release|Any CPU + {FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E}.Release|Any CPU.Build.0 = Release|Any CPU {D8054A77-57C9-4B04-BDAF-D556DAECF775}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D8054A77-57C9-4B04-BDAF-D556DAECF775}.Debug|Any CPU.Build.0 = Debug|Any CPU {D8054A77-57C9-4B04-BDAF-D556DAECF775}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2538,6 +2544,7 @@ Global {4DE72996-4492-40ED-939C-098008D6AF81} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {BFEE58EE-DF58-4F52-A99B-01D05FB251AF} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {D774395B-8CE5-4430-9EE3-9C6E3D299326} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} + {FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {D8054A77-57C9-4B04-BDAF-D556DAECF775} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {26BEB3CC-1EB9-472C-91F4-F99B549826D9} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {05C92994-CA01-43ED-9652-90085587376A} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} diff --git a/sdk/AWSSDK.Net35.Travis.sln b/sdk/AWSSDK.Net35.Travis.sln index 2e0ab43d2f1a..5aa3e2d56d9a 100644 --- a/sdk/AWSSDK.Net35.Travis.sln +++ b/sdk/AWSSDK.Net35.Travis.sln @@ -900,6 +900,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Macie2", "Macie2", "{DD4D9A EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Macie2.Net35", "src/Services/Macie2/AWSSDK.Macie2.Net35.csproj", "{D86374F2-3074-4A33-8E8A-B9D1D0BC34C7}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MailManager", "MailManager", "{1AE386E3-CD52-4156-9121-B3CDE62012C2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.Net35", "src/Services/MailManager/AWSSDK.MailManager.Net35.csproj", "{ADF33754-23DB-4697-8F55-CE99FFBD9EB1}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MainframeModernization", "MainframeModernization", "{91930F2D-830F-8AD2-5C6D-46A6DBB32457}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MainframeModernization.Net35", "src/Services/MainframeModernization/AWSSDK.MainframeModernization.Net35.csproj", "{56698185-CDFE-42BD-B184-B52595678201}" @@ -2506,6 +2510,10 @@ Global {D86374F2-3074-4A33-8E8A-B9D1D0BC34C7}.Debug|Any CPU.Build.0 = Debug|Any CPU {D86374F2-3074-4A33-8E8A-B9D1D0BC34C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {D86374F2-3074-4A33-8E8A-B9D1D0BC34C7}.Release|Any CPU.Build.0 = Release|Any CPU + {ADF33754-23DB-4697-8F55-CE99FFBD9EB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ADF33754-23DB-4697-8F55-CE99FFBD9EB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ADF33754-23DB-4697-8F55-CE99FFBD9EB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ADF33754-23DB-4697-8F55-CE99FFBD9EB1}.Release|Any CPU.Build.0 = Release|Any CPU {56698185-CDFE-42BD-B184-B52595678201}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {56698185-CDFE-42BD-B184-B52595678201}.Debug|Any CPU.Build.0 = Debug|Any CPU {56698185-CDFE-42BD-B184-B52595678201}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3658,6 +3666,8 @@ Global {212C6929-A815-4D2D-B1D7-9759A4BC7D7E} = {F022BCC9-DB05-C405-628B-9686C55524CD} {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {D86374F2-3074-4A33-8E8A-B9D1D0BC34C7} = {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} + {1AE386E3-CD52-4156-9121-B3CDE62012C2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {ADF33754-23DB-4697-8F55-CE99FFBD9EB1} = {1AE386E3-CD52-4156-9121-B3CDE62012C2} {91930F2D-830F-8AD2-5C6D-46A6DBB32457} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {56698185-CDFE-42BD-B184-B52595678201} = {91930F2D-830F-8AD2-5C6D-46A6DBB32457} {EEB2A3F7-60A6-6689-5895-95FD1F89727F} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net35.sln b/sdk/AWSSDK.Net35.sln index e22e9311be02..1fea06f0aefa 100644 --- a/sdk/AWSSDK.Net35.sln +++ b/sdk/AWSSDK.Net35.sln @@ -900,6 +900,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Macie2", "Macie2", "{DD4D9A EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Macie2.Net35", "src/Services/Macie2/AWSSDK.Macie2.Net35.csproj", "{AF634787-2DE3-4A80-B767-0CAB11400F01}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MailManager", "MailManager", "{3C7EA76C-C1D4-44E8-9C13-20903EC28ECF}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.Net35", "src/Services/MailManager/AWSSDK.MailManager.Net35.csproj", "{E825405C-07D4-44A5-9E6E-F4A3C213C270}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MainframeModernization", "MainframeModernization", "{91930F2D-830F-8AD2-5C6D-46A6DBB32457}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MainframeModernization.Net35", "src/Services/MainframeModernization/AWSSDK.MainframeModernization.Net35.csproj", "{088CBDE3-D158-40D5-843C-3E46292231C9}" @@ -2524,6 +2528,10 @@ Global {AF634787-2DE3-4A80-B767-0CAB11400F01}.Debug|Any CPU.Build.0 = Debug|Any CPU {AF634787-2DE3-4A80-B767-0CAB11400F01}.Release|Any CPU.ActiveCfg = Release|Any CPU {AF634787-2DE3-4A80-B767-0CAB11400F01}.Release|Any CPU.Build.0 = Release|Any CPU + {E825405C-07D4-44A5-9E6E-F4A3C213C270}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E825405C-07D4-44A5-9E6E-F4A3C213C270}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E825405C-07D4-44A5-9E6E-F4A3C213C270}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E825405C-07D4-44A5-9E6E-F4A3C213C270}.Release|Any CPU.Build.0 = Release|Any CPU {088CBDE3-D158-40D5-843C-3E46292231C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {088CBDE3-D158-40D5-843C-3E46292231C9}.Debug|Any CPU.Build.0 = Debug|Any CPU {088CBDE3-D158-40D5-843C-3E46292231C9}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3708,6 +3716,8 @@ Global {B793646D-1D4C-4971-9886-51C71E887AFC} = {F022BCC9-DB05-C405-628B-9686C55524CD} {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {AF634787-2DE3-4A80-B767-0CAB11400F01} = {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} + {3C7EA76C-C1D4-44E8-9C13-20903EC28ECF} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {E825405C-07D4-44A5-9E6E-F4A3C213C270} = {3C7EA76C-C1D4-44E8-9C13-20903EC28ECF} {91930F2D-830F-8AD2-5C6D-46A6DBB32457} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {088CBDE3-D158-40D5-843C-3E46292231C9} = {91930F2D-830F-8AD2-5C6D-46A6DBB32457} {EEB2A3F7-60A6-6689-5895-95FD1F89727F} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net45.Travis.sln b/sdk/AWSSDK.Net45.Travis.sln index 3b3c5e5ad847..82f89e8acfd1 100644 --- a/sdk/AWSSDK.Net45.Travis.sln +++ b/sdk/AWSSDK.Net45.Travis.sln @@ -900,6 +900,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Macie2", "Macie2", "{DD4D9A EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Macie2.Net45", "src/Services/Macie2/AWSSDK.Macie2.Net45.csproj", "{4F0E7461-CEA0-476A-9034-9F07C869326D}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MailManager", "MailManager", "{089D143F-7EF5-4CBF-8EAE-44FB3A84630C}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.Net45", "src/Services/MailManager/AWSSDK.MailManager.Net45.csproj", "{0057E2DF-B800-4A78-AAF7-51701C418816}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MainframeModernization", "MainframeModernization", "{91930F2D-830F-8AD2-5C6D-46A6DBB32457}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MainframeModernization.Net45", "src/Services/MainframeModernization/AWSSDK.MainframeModernization.Net45.csproj", "{2D4DA827-C54C-40F2-A07E-0D5B06C35038}" @@ -2506,6 +2510,10 @@ Global {4F0E7461-CEA0-476A-9034-9F07C869326D}.Debug|Any CPU.Build.0 = Debug|Any CPU {4F0E7461-CEA0-476A-9034-9F07C869326D}.Release|Any CPU.ActiveCfg = Release|Any CPU {4F0E7461-CEA0-476A-9034-9F07C869326D}.Release|Any CPU.Build.0 = Release|Any CPU + {0057E2DF-B800-4A78-AAF7-51701C418816}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0057E2DF-B800-4A78-AAF7-51701C418816}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0057E2DF-B800-4A78-AAF7-51701C418816}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0057E2DF-B800-4A78-AAF7-51701C418816}.Release|Any CPU.Build.0 = Release|Any CPU {2D4DA827-C54C-40F2-A07E-0D5B06C35038}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2D4DA827-C54C-40F2-A07E-0D5B06C35038}.Debug|Any CPU.Build.0 = Debug|Any CPU {2D4DA827-C54C-40F2-A07E-0D5B06C35038}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3658,6 +3666,8 @@ Global {1AB0DA2C-D615-4361-BC6C-A2BFC5F95F03} = {F022BCC9-DB05-C405-628B-9686C55524CD} {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {4F0E7461-CEA0-476A-9034-9F07C869326D} = {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} + {089D143F-7EF5-4CBF-8EAE-44FB3A84630C} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {0057E2DF-B800-4A78-AAF7-51701C418816} = {089D143F-7EF5-4CBF-8EAE-44FB3A84630C} {91930F2D-830F-8AD2-5C6D-46A6DBB32457} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {2D4DA827-C54C-40F2-A07E-0D5B06C35038} = {91930F2D-830F-8AD2-5C6D-46A6DBB32457} {EEB2A3F7-60A6-6689-5895-95FD1F89727F} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net45.sln b/sdk/AWSSDK.Net45.sln index fab54913b82f..7f0729beb517 100644 --- a/sdk/AWSSDK.Net45.sln +++ b/sdk/AWSSDK.Net45.sln @@ -900,6 +900,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Macie2", "Macie2", "{DD4D9A EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Macie2.Net45", "src/Services/Macie2/AWSSDK.Macie2.Net45.csproj", "{9BA313D0-4C38-426F-BB1F-7BA16C92EE11}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MailManager", "MailManager", "{7E844849-8D24-40BE-A7C9-F4DDB224FDAF}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.Net45", "src/Services/MailManager/AWSSDK.MailManager.Net45.csproj", "{1C063128-1D8A-474F-AD81-BC2F782CE7F4}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MainframeModernization", "MainframeModernization", "{91930F2D-830F-8AD2-5C6D-46A6DBB32457}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MainframeModernization.Net45", "src/Services/MainframeModernization/AWSSDK.MainframeModernization.Net45.csproj", "{415E561E-5ECC-4F62-8D25-CE8FC4127536}" @@ -2528,6 +2532,10 @@ Global {9BA313D0-4C38-426F-BB1F-7BA16C92EE11}.Debug|Any CPU.Build.0 = Debug|Any CPU {9BA313D0-4C38-426F-BB1F-7BA16C92EE11}.Release|Any CPU.ActiveCfg = Release|Any CPU {9BA313D0-4C38-426F-BB1F-7BA16C92EE11}.Release|Any CPU.Build.0 = Release|Any CPU + {1C063128-1D8A-474F-AD81-BC2F782CE7F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C063128-1D8A-474F-AD81-BC2F782CE7F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C063128-1D8A-474F-AD81-BC2F782CE7F4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C063128-1D8A-474F-AD81-BC2F782CE7F4}.Release|Any CPU.Build.0 = Release|Any CPU {415E561E-5ECC-4F62-8D25-CE8FC4127536}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {415E561E-5ECC-4F62-8D25-CE8FC4127536}.Debug|Any CPU.Build.0 = Debug|Any CPU {415E561E-5ECC-4F62-8D25-CE8FC4127536}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3720,6 +3728,8 @@ Global {A4FEA02E-D8D2-44C9-A5E0-11789FFAEB59} = {F022BCC9-DB05-C405-628B-9686C55524CD} {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {9BA313D0-4C38-426F-BB1F-7BA16C92EE11} = {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} + {7E844849-8D24-40BE-A7C9-F4DDB224FDAF} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {1C063128-1D8A-474F-AD81-BC2F782CE7F4} = {7E844849-8D24-40BE-A7C9-F4DDB224FDAF} {91930F2D-830F-8AD2-5C6D-46A6DBB32457} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {415E561E-5ECC-4F62-8D25-CE8FC4127536} = {91930F2D-830F-8AD2-5C6D-46A6DBB32457} {EEB2A3F7-60A6-6689-5895-95FD1F89727F} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.NetStandard.sln b/sdk/AWSSDK.NetStandard.sln index 6b2bd59965bd..776fd675253a 100644 --- a/sdk/AWSSDK.NetStandard.sln +++ b/sdk/AWSSDK.NetStandard.sln @@ -900,6 +900,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Macie2", "Macie2", "{DD4D9A EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Macie2.NetStandard", "src/Services/Macie2/AWSSDK.Macie2.NetStandard.csproj", "{D138F582-91FC-4BD3-A371-83A8FF0DC35A}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MailManager", "MailManager", "{C9678C01-7E31-4A3C-AD1D-0BDAF7F006DB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.NetStandard", "src/Services/MailManager/AWSSDK.MailManager.NetStandard.csproj", "{670C40FB-B14F-45C3-9CD0-A5A3CB32C289}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MainframeModernization", "MainframeModernization", "{91930F2D-830F-8AD2-5C6D-46A6DBB32457}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MainframeModernization.NetStandard", "src/Services/MainframeModernization/AWSSDK.MainframeModernization.NetStandard.csproj", "{2949369D-2CBE-4CFB-9C97-612E20F80DDB}" @@ -2522,6 +2526,10 @@ Global {D138F582-91FC-4BD3-A371-83A8FF0DC35A}.Debug|Any CPU.Build.0 = Debug|Any CPU {D138F582-91FC-4BD3-A371-83A8FF0DC35A}.Release|Any CPU.ActiveCfg = Release|Any CPU {D138F582-91FC-4BD3-A371-83A8FF0DC35A}.Release|Any CPU.Build.0 = Release|Any CPU + {670C40FB-B14F-45C3-9CD0-A5A3CB32C289}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {670C40FB-B14F-45C3-9CD0-A5A3CB32C289}.Debug|Any CPU.Build.0 = Debug|Any CPU + {670C40FB-B14F-45C3-9CD0-A5A3CB32C289}.Release|Any CPU.ActiveCfg = Release|Any CPU + {670C40FB-B14F-45C3-9CD0-A5A3CB32C289}.Release|Any CPU.Build.0 = Release|Any CPU {2949369D-2CBE-4CFB-9C97-612E20F80DDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2949369D-2CBE-4CFB-9C97-612E20F80DDB}.Debug|Any CPU.Build.0 = Debug|Any CPU {2949369D-2CBE-4CFB-9C97-612E20F80DDB}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3706,6 +3714,8 @@ Global {C81ACC1E-1118-4AC1-8BD4-DE0270476DA0} = {F022BCC9-DB05-C405-628B-9686C55524CD} {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {D138F582-91FC-4BD3-A371-83A8FF0DC35A} = {DD4D9AB8-FFCC-06D6-78D1-E5CF261D56E1} + {C9678C01-7E31-4A3C-AD1D-0BDAF7F006DB} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {670C40FB-B14F-45C3-9CD0-A5A3CB32C289} = {C9678C01-7E31-4A3C-AD1D-0BDAF7F006DB} {91930F2D-830F-8AD2-5C6D-46A6DBB32457} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {2949369D-2CBE-4CFB-9C97-612E20F80DDB} = {91930F2D-830F-8AD2-5C6D-46A6DBB32457} {EEB2A3F7-60A6-6689-5895-95FD1F89727F} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/code-analysis/ServiceAnalysis/MailManager/AWSSDK.MailManager.CodeAnalysis.csproj b/sdk/code-analysis/ServiceAnalysis/MailManager/AWSSDK.MailManager.CodeAnalysis.csproj new file mode 100644 index 000000000000..173bf0162be9 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/MailManager/AWSSDK.MailManager.CodeAnalysis.csproj @@ -0,0 +1,33 @@ + + + netstandard2.0 + true + false + {FAA3ED17-D02F-4DC9-B8EF-920AF9EB706E} + Amazon.MailManager.CodeAnalysis + AWSSDK.MailManager.CodeAnalysis + + false + false + false + false + false + false + false + false + + + + + + + + + Always + + + + + + + \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueAssignmentAnalyzer.cs b/sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueAssignmentAnalyzer.cs new file mode 100644 index 000000000000..16e48a68138d --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueAssignmentAnalyzer.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Reflection; +using System.Linq; +using System.Xml.Linq; +using System.Threading; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Diagnostics; + +using Amazon.CodeAnalysis.Shared; + +namespace Amazon.MailManager.CodeAnalysis +{ + [DiagnosticAnalyzer(LanguageNames.CSharp)] + public class PropertyValueAssignmentAnalyzer : AbstractPropertyValueAssignmentAnalyzer + { + public override string GetServiceName() + { + return "MailManager"; + } + } +} \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueRules.xml b/sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueRules.xml new file mode 100644 index 000000000000..daa374e21334 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/MailManager/Generated/PropertyValueRules.xml @@ -0,0 +1,827 @@ + + + + Amazon.MailManager.Model.CreateAddonInstanceRequest.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.CreateAddonInstanceRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateAddonInstanceResponse.AddonInstanceId + 4 + 67 + ^ai-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.CreateAddonSubscriptionRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateAddonSubscriptionResponse.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.CreateArchiveRequest.ArchiveName + 1 + 64 + ^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$ + + + Amazon.MailManager.Model.CreateArchiveRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateArchiveRequest.KmsKeyArn + ^arn:aws(|-cn|-us-gov):kms:[a-z0-9-]{1,20}:[0-9]{12}:(key|alias)/.+$ + + + Amazon.MailManager.Model.CreateArchiveResponse.ArchiveId + 1 + 66 + + + Amazon.MailManager.Model.CreateIngressPointRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateIngressPointRequest.IngressPointName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.CreateIngressPointRequest.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.CreateIngressPointRequest.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.CreateIngressPointResponse.IngressPointId + 1 + 100 + + + Amazon.MailManager.Model.CreateRelayRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateRelayRequest.RelayName + 1 + 100 + ^[a-zA-Z0-9-_]+$ + + + Amazon.MailManager.Model.CreateRelayRequest.ServerName + 1 + 100 + ^[a-zA-Z0-9-\.]+$ + + + Amazon.MailManager.Model.CreateRelayRequest.ServerPort + 1 + 65535 + + + Amazon.MailManager.Model.CreateRelayResponse.RelayId + 1 + 100 + ^[a-zA-Z0-9-]+$ + + + Amazon.MailManager.Model.CreateRuleSetRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateRuleSetRequest.RuleSetName + 1 + 100 + ^[a-zA-Z0-9_.-]+$ + + + Amazon.MailManager.Model.CreateRuleSetResponse.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.CreateTrafficPolicyRequest.ClientToken + 1 + 128 + + + Amazon.MailManager.Model.CreateTrafficPolicyRequest.MaxMessageSizeBytes + 1 + + + Amazon.MailManager.Model.CreateTrafficPolicyRequest.TrafficPolicyName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.CreateTrafficPolicyResponse.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.DeleteAddonInstanceRequest.AddonInstanceId + 4 + 67 + ^ai-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.DeleteAddonSubscriptionRequest.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.DeleteArchiveRequest.ArchiveId + 1 + 66 + + + Amazon.MailManager.Model.DeleteIngressPointRequest.IngressPointId + 1 + 100 + + + Amazon.MailManager.Model.DeleteRelayRequest.RelayId + 1 + 100 + ^[a-zA-Z0-9-]+$ + + + Amazon.MailManager.Model.DeleteRuleSetRequest.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.DeleteTrafficPolicyRequest.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.GetAddonInstanceRequest.AddonInstanceId + 4 + 67 + ^ai-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.GetAddonInstanceResponse.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.GetAddonSubscriptionRequest.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.GetArchiveRequest.ArchiveId + 1 + 66 + + + Amazon.MailManager.Model.GetArchiveResponse.ArchiveId + 1 + 66 + + + Amazon.MailManager.Model.GetArchiveResponse.ArchiveName + 1 + 64 + ^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$ + + + Amazon.MailManager.Model.GetArchiveResponse.KmsKeyArn + ^arn:aws(|-cn|-us-gov):kms:[a-z0-9-]{1,20}:[0-9]{12}:(key|alias)/.+$ + + + Amazon.MailManager.Model.GetArchiveExportRequest.ExportId + 1 + 64 + + + Amazon.MailManager.Model.GetArchiveExportResponse.ArchiveId + 3 + 66 + ^a-[\w]{1,64}$ + + + Amazon.MailManager.Model.GetArchiveSearchRequest.SearchId + 1 + 64 + + + Amazon.MailManager.Model.GetArchiveSearchResponse.ArchiveId + 3 + 66 + ^a-[\w]{1,64}$ + + + Amazon.MailManager.Model.GetArchiveSearchResponse.MaxResults + 0 + 1000 + + + Amazon.MailManager.Model.GetArchiveSearchResultsRequest.SearchId + 1 + 64 + + + Amazon.MailManager.Model.GetIngressPointRequest.IngressPointId + 1 + 100 + + + Amazon.MailManager.Model.GetIngressPointResponse.IngressPointId + 1 + 100 + + + Amazon.MailManager.Model.GetIngressPointResponse.IngressPointName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.GetIngressPointResponse.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.GetIngressPointResponse.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.GetRelayRequest.RelayId + 1 + 100 + ^[a-zA-Z0-9-]+$ + + + Amazon.MailManager.Model.GetRelayResponse.RelayId + 1 + 100 + ^[a-zA-Z0-9-]+$ + + + Amazon.MailManager.Model.GetRelayResponse.RelayName + 1 + 100 + ^[a-zA-Z0-9-_]+$ + + + Amazon.MailManager.Model.GetRelayResponse.ServerName + 1 + 100 + ^[a-zA-Z0-9-\.]+$ + + + Amazon.MailManager.Model.GetRelayResponse.ServerPort + 1 + 65535 + + + Amazon.MailManager.Model.GetRuleSetRequest.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.GetRuleSetResponse.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.GetRuleSetResponse.RuleSetName + 1 + 100 + ^[a-zA-Z0-9_.-]+$ + + + Amazon.MailManager.Model.GetTrafficPolicyRequest.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.GetTrafficPolicyResponse.MaxMessageSizeBytes + 1 + + + Amazon.MailManager.Model.GetTrafficPolicyResponse.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.GetTrafficPolicyResponse.TrafficPolicyName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.ListAddonInstancesRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListAddonInstancesRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListAddonInstancesResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListAddonSubscriptionsRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListAddonSubscriptionsRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListAddonSubscriptionsResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListArchiveExportsRequest.ArchiveId + 3 + 66 + ^a-[\w]{1,64}$ + + + Amazon.MailManager.Model.ListArchiveExportsRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListArchiveExportsRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListArchiveExportsResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListArchivesRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListArchivesRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListArchivesResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListArchiveSearchesRequest.ArchiveId + 3 + 66 + ^a-[\w]{1,64}$ + + + Amazon.MailManager.Model.ListArchiveSearchesRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListArchiveSearchesRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListArchiveSearchesResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListIngressPointsRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListIngressPointsRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListIngressPointsResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListRelaysRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListRelaysResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListRuleSetsRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListRuleSetsRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListRuleSetsResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListTagsForResourceRequest.ResourceArn + 20 + 1011 + ^arn:aws(|-cn|-us-gov):ses:[a-z0-9-]{1,20}:[0-9]{12}:(mailmanager-|addon-).+$ + + + Amazon.MailManager.Model.ListTrafficPoliciesRequest.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.ListTrafficPoliciesRequest.PageSize + 1 + 50 + + + Amazon.MailManager.Model.ListTrafficPoliciesResponse.NextToken + 1 + 2048 + + + Amazon.MailManager.Model.StartArchiveExportRequest.ArchiveId + 3 + 66 + ^a-[\w]{1,64}$ + + + Amazon.MailManager.Model.StartArchiveExportResponse.ExportId + 1 + 64 + + + Amazon.MailManager.Model.StartArchiveSearchRequest.ArchiveId + 3 + 66 + ^a-[\w]{1,64}$ + + + Amazon.MailManager.Model.StartArchiveSearchRequest.MaxResults + 0 + 1000 + + + Amazon.MailManager.Model.StartArchiveSearchResponse.SearchId + 1 + 64 + + + Amazon.MailManager.Model.StopArchiveExportRequest.ExportId + 1 + 64 + + + Amazon.MailManager.Model.StopArchiveSearchRequest.SearchId + 1 + 64 + + + Amazon.MailManager.Model.TagResourceRequest.ResourceArn + 20 + 1011 + ^arn:aws(|-cn|-us-gov):ses:[a-z0-9-]{1,20}:[0-9]{12}:(mailmanager-|addon-).+$ + + + Amazon.MailManager.Model.UntagResourceRequest.ResourceArn + 20 + 1011 + ^arn:aws(|-cn|-us-gov):ses:[a-z0-9-]{1,20}:[0-9]{12}:(mailmanager-|addon-).+$ + + + Amazon.MailManager.Model.UpdateArchiveRequest.ArchiveId + 1 + 66 + + + Amazon.MailManager.Model.UpdateArchiveRequest.ArchiveName + 1 + 64 + ^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$ + + + Amazon.MailManager.Model.UpdateIngressPointRequest.IngressPointId + 1 + 100 + + + Amazon.MailManager.Model.UpdateIngressPointRequest.IngressPointName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.UpdateIngressPointRequest.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.UpdateIngressPointRequest.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.UpdateRelayRequest.RelayId + 1 + 100 + ^[a-zA-Z0-9-]+$ + + + Amazon.MailManager.Model.UpdateRelayRequest.RelayName + 1 + 100 + ^[a-zA-Z0-9-_]+$ + + + Amazon.MailManager.Model.UpdateRelayRequest.ServerName + 1 + 100 + ^[a-zA-Z0-9-\.]+$ + + + Amazon.MailManager.Model.UpdateRelayRequest.ServerPort + 1 + 65535 + + + Amazon.MailManager.Model.UpdateRuleSetRequest.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.UpdateRuleSetRequest.RuleSetName + 1 + 100 + ^[a-zA-Z0-9_.-]+$ + + + Amazon.MailManager.Model.UpdateTrafficPolicyRequest.MaxMessageSizeBytes + 1 + + + Amazon.MailManager.Model.UpdateTrafficPolicyRequest.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.UpdateTrafficPolicyRequest.TrafficPolicyName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.AddHeaderAction.HeaderName + 1 + 64 + ^[xX]\-[a-zA-Z0-9\-]+$ + + + Amazon.MailManager.Model.AddHeaderAction.HeaderValue + 1 + 128 + + + Amazon.MailManager.Model.AddonInstance.AddonInstanceId + 4 + 67 + ^ai-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.AddonInstance.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.AddonSubscription.AddonSubscriptionId + 4 + 67 + ^as-[a-zA-Z0-9]{1,64}$ + + + Amazon.MailManager.Model.Analysis.Analyzer + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.Analysis.ResultField + 1 + 256 + ^[\sa-zA-Z0-9_]+$ + + + Amazon.MailManager.Model.Archive.ArchiveId + 1 + 66 + + + Amazon.MailManager.Model.Archive.ArchiveName + 1 + 64 + ^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$ + + + Amazon.MailManager.Model.ArchiveAction.TargetArchive + 1 + 2048 + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.DeliverToMailboxAction.MailboxArn + 1 + 2048 + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.DeliverToMailboxAction.RoleArn + 20 + 2048 + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.ExportSummary.ExportId + 1 + 64 + + + Amazon.MailManager.Model.IngressAnalysis.Analyzer + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.IngressAnalysis.ResultField + 1 + 256 + ^[\sa-zA-Z0-9_]+$ + + + Amazon.MailManager.Model.IngressPoint.IngressPointId + 1 + 100 + + + Amazon.MailManager.Model.IngressPoint.IngressPointName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + + Amazon.MailManager.Model.IngressPointAuthConfiguration.SecretArn + ^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$ + + + Amazon.MailManager.Model.IngressPointConfiguration.SecretArn + ^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$ + + + Amazon.MailManager.Model.IngressPointConfiguration.SmtpPassword + 8 + 64 + ^[A-Za-z0-9!@#$%^&*()_+\-=\[\]{}|.,?]+$ + + + Amazon.MailManager.Model.Relay.RelayId + 1 + 100 + ^[a-zA-Z0-9-]+$ + + + Amazon.MailManager.Model.Relay.RelayName + 1 + 100 + ^[a-zA-Z0-9-_]+$ + + + Amazon.MailManager.Model.RelayAction.Relay + 1 + 2048 + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.RelayAuthentication.SecretArn + ^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$ + + + Amazon.MailManager.Model.Rule.Name + 1 + 32 + ^[a-zA-Z0-9_.-]+$ + + + Amazon.MailManager.Model.RuleSet.RuleSetId + 1 + 100 + + + Amazon.MailManager.Model.RuleSet.RuleSetName + 1 + 100 + ^[a-zA-Z0-9_.-]+$ + + + Amazon.MailManager.Model.S3Action.RoleArn + 20 + 2048 + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.S3Action.S3Bucket + 1 + 62 + ^[a-zA-Z0-9.-]+$ + + + Amazon.MailManager.Model.S3Action.S3Prefix + 1 + 62 + ^[a-zA-Z0-9!_.*'()/-]+$ + + + Amazon.MailManager.Model.S3Action.S3SseKmsKeyId + 20 + 2048 + ^[a-zA-Z0-9-:/]+$ + + + Amazon.MailManager.Model.S3ExportDestinationConfiguration.S3Location + ^s3://[a-zA-Z0-9.-]{3,63}(/[a-zA-Z0-9!_.*'()/-]*)*$ + + + Amazon.MailManager.Model.SearchSummary.SearchId + 1 + 64 + + + Amazon.MailManager.Model.SendAction.RoleArn + 20 + 2048 + ^[a-zA-Z0-9:_/+=,@.#-]+$ + + + Amazon.MailManager.Model.Tag.Key + 1 + 128 + ^[a-zA-Z0-9/_\+=\.:@\-]+$ + + + Amazon.MailManager.Model.Tag.Value + 0 + 256 + ^[a-zA-Z0-9/_\+=\.:@\-]*$ + + + Amazon.MailManager.Model.TrafficPolicy.TrafficPolicyId + 1 + 100 + + + Amazon.MailManager.Model.TrafficPolicy.TrafficPolicyName + 3 + 63 + ^[A-Za-z0-9_\-]+$ + + \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/MailManager/Properties/AssemblyInfo.cs b/sdk/code-analysis/ServiceAnalysis/MailManager/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..708bff4df4bc --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/MailManager/Properties/AssemblyInfo.cs @@ -0,0 +1,32 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AWSSDK.MailManager")] +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - MailManager. This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] +[assembly: AssemblyCompany("Amazon.com, Inc")] +[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("3.3")] +[assembly: AssemblyFileVersion("3.3")] \ No newline at end of file diff --git a/sdk/src/Services/MailManager/AWSSDK.MailManager.Net35.csproj b/sdk/src/Services/MailManager/AWSSDK.MailManager.Net35.csproj new file mode 100644 index 000000000000..8ff69998dcf1 --- /dev/null +++ b/sdk/src/Services/MailManager/AWSSDK.MailManager.Net35.csproj @@ -0,0 +1,83 @@ + + + true + net35 + $(DefineConstants);BCL;BCL35;AWS_APM_API;CODE_ANALYSIS + portable + true + AWSSDK.MailManager + AWSSDK.MailManager + + false + false + false + false + false + false + false + false + true + true + + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client + + false + CA1822 + + + ../../../AWSDotNetSDK.ruleset + + + ../../../AWSDotNetSDKForBuild.ruleset + + + + + + ../../../awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Entity.dll + + + + + \ No newline at end of file diff --git a/sdk/src/Services/MailManager/AWSSDK.MailManager.Net45.csproj b/sdk/src/Services/MailManager/AWSSDK.MailManager.Net45.csproj new file mode 100644 index 000000000000..187bee933d70 --- /dev/null +++ b/sdk/src/Services/MailManager/AWSSDK.MailManager.Net45.csproj @@ -0,0 +1,74 @@ + + + true + net45 + $(DefineConstants);BCL;BCL45;AWS_ASYNC_API;CODE_ANALYSIS + portable + true + AWSSDK.MailManager + AWSSDK.MailManager + + false + false + false + false + false + false + false + false + true + true + + CA1822 + + + ../../../AWSDotNetSDK.ruleset + + + ../../../AWSDotNetSDKForBuild.ruleset + + + + + + ../../../awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/src/Services/MailManager/AWSSDK.MailManager.NetStandard.csproj b/sdk/src/Services/MailManager/AWSSDK.MailManager.NetStandard.csproj new file mode 100644 index 000000000000..4baa5cbc21ec --- /dev/null +++ b/sdk/src/Services/MailManager/AWSSDK.MailManager.NetStandard.csproj @@ -0,0 +1,84 @@ + + + true + netstandard2.0;netcoreapp3.1;net8.0 + $(DefineConstants);NETSTANDARD;AWS_ASYNC_API + $(DefineConstants);NETSTANDARD20;AWS_ASYNC_ENUMERABLES_API + $(DefineConstants);AWS_ASYNC_ENUMERABLES_API + $(DefineConstants);AWS_ASYNC_ENUMERABLES_API + portable + true + AWSSDK.MailManager + AWSSDK.MailManager + + false + false + false + false + false + false + false + false + true + true + + CA1822 + + + + 8.0 + + + true + + + ../../../AWSDotNetSDK.ruleset + + + ../../../AWSDotNetSDKForBuild.ruleset + + + + + + ../../../awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + + \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/AmazonMailManagerConfig.cs b/sdk/src/Services/MailManager/Generated/AmazonMailManagerConfig.cs new file mode 100644 index 000000000000..2a949a4c49f6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/AmazonMailManagerConfig.cs @@ -0,0 +1,93 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Util.Internal; +using Amazon.MailManager.Internal; + +namespace Amazon.MailManager +{ + /// + /// Configuration for accessing Amazon MailManager service + /// + [AWSSignerType("v4")] + public partial class AmazonMailManagerConfig : ClientConfig + { + private static readonly string UserAgentString = + InternalSDKUtils.BuildUserAgentString("MailManager", "3.3"); + + private string _userAgent = UserAgentString; + /// + /// The ServiceId, which is the unique identifier for a service. + /// + public static new string ServiceId + { + get + { + return "MailManager"; + } + } + /// + /// Default constructor + /// + public AmazonMailManagerConfig() + : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonMailManagerDefaultConfiguration.GetAllConfigurations())) + { + base.ServiceId = "MailManager"; + this.AuthenticationServiceName = "ses"; + this.EndpointProvider = new AmazonMailManagerEndpointProvider(); + } + + /// + /// The constant used to lookup in the region hash the endpoint. + /// + public override string RegionEndpointServiceName + { + get + { + return "mail-manager"; + } + } + + /// + /// Gets the ServiceVersion property. + /// + public override string ServiceVersion + { + get + { + return "2023-10-17"; + } + } + + /// + /// Gets the value of UserAgent property. + /// + public override string UserAgent + { + get + { + return _userAgent; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/AmazonMailManagerDefaultConfiguration.cs b/sdk/src/Services/MailManager/Generated/AmazonMailManagerDefaultConfiguration.cs new file mode 100644 index 000000000000..4e19278b1980 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/AmazonMailManagerDefaultConfiguration.cs @@ -0,0 +1,146 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; + +using Amazon.Runtime; + +namespace Amazon.MailManager +{ + /// + /// Configuration for accessing Amazon MailManager service + /// + public static class AmazonMailManagerDefaultConfiguration + { + /// + /// Collection of all s supported by + /// MailManager + /// + public static ReadOnlyCollection GetAllConfigurations() + { + return new ReadOnlyCollection(new List + { + Standard, + InRegion, + CrossRegion, + Mobile, + Auto, + Legacy + }); + } + + /// + ///

The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Standard, + RetryMode = RequestRetryMode.Standard, + StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:03.1 + ConnectTimeout = TimeSpan.FromMilliseconds(3100L), + // 0:00:03.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.InRegion, + RetryMode = RequestRetryMode.Standard, + StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:01.1 + ConnectTimeout = TimeSpan.FromMilliseconds(1100L), + // 0:00:01.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.CrossRegion, + RetryMode = RequestRetryMode.Standard, + StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:03.1 + ConnectTimeout = TimeSpan.FromMilliseconds(3100L), + // 0:00:03.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

+ ///
+ public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Mobile, + RetryMode = RequestRetryMode.Standard, + StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:30 + ConnectTimeout = TimeSpan.FromMilliseconds(30000L), + // 0:00:30 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.

Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query EC2 Instance Metadata service, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application

+ ///
+ public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Auto, + RetryMode = RequestRetryMode.Standard, + StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, + // 0:00:01.1 + ConnectTimeout = TimeSpan.FromMilliseconds(1100L), + // 0:00:01.1 + TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + /// + ///

The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode

+ ///
+ public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration + { + Name = DefaultConfigurationMode.Legacy, + RetryMode = RequestRetryMode.Legacy, + StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, + S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, + ConnectTimeout = null, + TlsNegotiationTimeout = null, + TimeToFirstByteTimeout = null, + HttpRequestTimeout = null + }; + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/AmazonMailManagerEndpointParameters.cs b/sdk/src/Services/MailManager/Generated/AmazonMailManagerEndpointParameters.cs new file mode 100644 index 000000000000..c840f969a485 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/AmazonMailManagerEndpointParameters.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using Amazon.Runtime; +using Amazon.Runtime.Endpoints; + +namespace Amazon.MailManager.Endpoints +{ + /// + /// Contains parameters used for resolving MailManager endpoints + /// Parameters can be sourced from client config and service operations + /// Used by internal MailManagerEndpointProvider and MailManagerEndpointResolver + /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider + /// + public class MailManagerEndpointParameters : EndpointParameters + { + /// + /// MailManagerEndpointParameters constructor + /// + public MailManagerEndpointParameters() + { + UseDualStack = false; + UseFIPS = false; + } + + /// + /// Region parameter + /// + public string Region + { + get { return (string)this["Region"]; } + set { this["Region"] = value; } + } + + /// + /// UseDualStack parameter + /// + public bool? UseDualStack + { + get { return (bool?)this["UseDualStack"]; } + set { this["UseDualStack"] = value; } + } + + /// + /// UseFIPS parameter + /// + public bool? UseFIPS + { + get { return (bool?)this["UseFIPS"]; } + set { this["UseFIPS"] = value; } + } + + /// + /// Endpoint parameter + /// + public string Endpoint + { + get { return (string)this["Endpoint"]; } + set { this["Endpoint"] = value; } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/AmazonMailManagerException.cs b/sdk/src/Services/MailManager/Generated/AmazonMailManagerException.cs new file mode 100644 index 000000000000..59b16a1b49af --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/AmazonMailManagerException.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Net; +using System.Text; + +using Amazon.Runtime; + +namespace Amazon.MailManager +{ + /// + /// Common exception for the MailManager service. + /// +#if !NETSTANDARD + [Serializable] +#endif + public partial class AmazonMailManagerException : AmazonServiceException + { + /// + /// Construct instance of AmazonMailManagerException + /// + /// + public AmazonMailManagerException(string message) + : base(message) + { + } + + /// + /// Construct instance of AmazonMailManagerException + /// + /// + /// + public AmazonMailManagerException(string message, Exception innerException) + : base(message, innerException) + { + } + + /// + /// Construct instance of AmazonMailManagerException + /// + /// + public AmazonMailManagerException(Exception innerException) + : base(innerException.Message, innerException) + { + } + + /// + /// Construct instance of AmazonMailManagerException + /// + /// + /// + /// + /// + /// + public AmazonMailManagerException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) + { + } + + /// + /// Construct instance of AmazonMailManagerException + /// + /// + /// + /// + /// + /// + /// + public AmazonMailManagerException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) + { + } + +#if !NETSTANDARD + /// + /// Constructs a new instance of the AmazonMailManagerException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected AmazonMailManagerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointProvider.cs b/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointProvider.cs new file mode 100644 index 000000000000..245602cae2e5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointProvider.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using Amazon.Runtime; +using Amazon.Runtime.Endpoints; +using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; + +namespace Amazon.MailManager.Internal +{ + /// + /// Amazon MailManager endpoint provider. + /// Resolves endpoint for given set of MailManagerEndpointParameters. + /// Can throw AmazonClientException if endpoint resolution is unsuccessful. + /// + public class AmazonMailManagerEndpointProvider : IEndpointProvider + { + /// + /// Resolve endpoint for MailManagerEndpointParameters + /// + public Endpoint ResolveEndpoint(EndpointParameters parameters) + { + if (parameters == null) + throw new ArgumentNullException("parameters"); + + if (parameters["UseDualStack"] == null) + throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); + if (parameters["UseFIPS"] == null) + throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); + + var refs = new Dictionary() + { + ["Region"] = parameters["Region"], + ["UseDualStack"] = parameters["UseDualStack"], + ["UseFIPS"] = parameters["UseFIPS"], + ["Endpoint"] = parameters["Endpoint"], + }; + if (IsSet(refs["Endpoint"])) + { + if (Equals(refs["UseFIPS"], true)) + { + throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); + } + if (Equals(refs["UseDualStack"], true)) + { + throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); + } + return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); + } + if (IsSet(refs["Region"])) + { + if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) + { + if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) + { + if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) + { + return new Endpoint(Interpolate(@"https://mail-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); + } + throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); + } + if (Equals(refs["UseFIPS"], true)) + { + if (Equals(GetAttr(refs["PartitionResult"], "supportsFIPS"), true)) + { + return new Endpoint(Interpolate(@"https://mail-manager-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); + } + throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); + } + if (Equals(refs["UseDualStack"], true)) + { + if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) + { + return new Endpoint(Interpolate(@"https://mail-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); + } + throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); + } + return new Endpoint(Interpolate(@"https://mail-manager.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); + } + } + throw new AmazonClientException("Invalid Configuration: Missing Region"); + + throw new AmazonClientException("Cannot resolve endpoint"); + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointResolver.cs b/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointResolver.cs new file mode 100644 index 000000000000..1756a13eeba5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerEndpointResolver.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Endpoints; +using Amazon.Util; +using Amazon.MailManager.Endpoints; + +#pragma warning disable 1591 + +namespace Amazon.MailManager.Internal +{ + /// + /// Amazon MailManager endpoint resolver. + /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for MailManager service requests. + /// Collects values for MailManagerEndpointParameters and then tries to resolve endpoint by calling + /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses MailManagerEndpointProvider. + /// Responsible for setting authentication and http headers provided by resolved endpoint. + /// + public class AmazonMailManagerEndpointResolver : BaseEndpointResolver + { + protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) + { + + InjectHostPrefix(executionContext.RequestContext); + } + + protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) + { + var config = (AmazonMailManagerConfig)requestContext.ClientConfig; + var result = new MailManagerEndpointParameters(); + result.Region = config.RegionEndpoint?.SystemName; + result.UseDualStack = config.UseDualstackEndpoint; + result.UseFIPS = config.UseFIPSEndpoint; + result.Endpoint = config.ServiceURL; + + + // The region needs to be determined from the ServiceURL if not set. + var regionEndpoint = config.RegionEndpoint; + if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) + { + // Use the specified signing region if it was provided alongside a custom ServiceURL + if (!string.IsNullOrEmpty(config.AuthenticationRegion)) + { + result.Region = config.AuthenticationRegion; + } + else // try to extract a region from the custom ServiceURL + { + var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); + result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; + } + } + + // To support legacy endpoint overridding rules in the endpoints.json + if (result.Region == "us-east-1-regional") + { + result.Region = "us-east-1"; + } + + // Use AlternateEndpoint region override if set + if (requestContext.Request.AlternateEndpoint != null) + { + result.Region = requestContext.Request.AlternateEndpoint.SystemName; + } + + + // Assign staticContextParams and contextParam per operation + + return result; + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerMetadata.cs b/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerMetadata.cs new file mode 100644 index 000000000000..40771ae0b622 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Internal/AmazonMailManagerMetadata.cs @@ -0,0 +1,55 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using Amazon.Runtime.Internal; + + +namespace Amazon.MailManager.Internal +{ + /// + /// Service metadata for Amazon MailManager service + /// + public partial class AmazonMailManagerMetadata : IServiceMetadata + { + /// + /// Gets the value of the Service Id. + /// + public string ServiceId + { + get + { + return "MailManager"; + } + } + + /// + /// Gets the dictionary that gives mapping of renamed operations + /// + public System.Collections.Generic.IDictionary OperationNameMapping + { + get + { + return new System.Collections.Generic.Dictionary(0) + { + }; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/AccessDeniedException.cs b/sdk/src/Services/MailManager/Generated/Model/AccessDeniedException.cs new file mode 100644 index 000000000000..f06d4f5f8c72 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/AccessDeniedException.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class AccessDeniedException : AmazonMailManagerException + { + + /// + /// Constructs a new AccessDeniedException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public AccessDeniedException(string message) + : base(message) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + /// + public AccessDeniedException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + public AccessDeniedException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + /// + /// + /// + /// + /// + public AccessDeniedException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + /// + /// + /// + /// + public AccessDeniedException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the AccessDeniedException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/AddHeaderAction.cs b/sdk/src/Services/MailManager/Generated/Model/AddHeaderAction.cs new file mode 100644 index 000000000000..b313c5b268d9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/AddHeaderAction.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The action to add a header to a message. When executed, this action will add the given + /// header to the message. + /// + public partial class AddHeaderAction + { + private string _headerName; + private string _headerValue; + + /// + /// Gets and sets the property HeaderName. + /// + /// The name of the header to add to an email. The header must be prefixed with "X-". + /// Headers are added regardless of whether the header name pre-existed in the email. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string HeaderName + { + get { return this._headerName; } + set { this._headerName = value; } + } + + // Check to see if HeaderName property is set + internal bool IsSetHeaderName() + { + return this._headerName != null; + } + + /// + /// Gets and sets the property HeaderValue. + /// + /// The value of the header to add to the email. + /// + /// + [AWSProperty(Required=true, Min=1, Max=128)] + public string HeaderValue + { + get { return this._headerValue; } + set { this._headerValue = value; } + } + + // Check to see if HeaderValue property is set + internal bool IsSetHeaderValue() + { + return this._headerValue != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/AddonInstance.cs b/sdk/src/Services/MailManager/Generated/Model/AddonInstance.cs new file mode 100644 index 000000000000..a659ff73e54a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/AddonInstance.cs @@ -0,0 +1,136 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// An Add On instance represents a specific configuration of an Add On. + /// + public partial class AddonInstance + { + private string _addonInstanceArn; + private string _addonInstanceId; + private string _addonName; + private string _addonSubscriptionId; + private DateTime? _createdTimestamp; + + /// + /// Gets and sets the property AddonInstanceArn. + /// + /// The Amazon Resource Name (ARN) of the Add On instance. + /// + /// + public string AddonInstanceArn + { + get { return this._addonInstanceArn; } + set { this._addonInstanceArn = value; } + } + + // Check to see if AddonInstanceArn property is set + internal bool IsSetAddonInstanceArn() + { + return this._addonInstanceArn != null; + } + + /// + /// Gets and sets the property AddonInstanceId. + /// + /// The unique ID of the Add On instance. + /// + /// + [AWSProperty(Min=4, Max=67)] + public string AddonInstanceId + { + get { return this._addonInstanceId; } + set { this._addonInstanceId = value; } + } + + // Check to see if AddonInstanceId property is set + internal bool IsSetAddonInstanceId() + { + return this._addonInstanceId != null; + } + + /// + /// Gets and sets the property AddonName. + /// + /// The name of the Add On for the instance. + /// + /// + public string AddonName + { + get { return this._addonName; } + set { this._addonName = value; } + } + + // Check to see if AddonName property is set + internal bool IsSetAddonName() + { + return this._addonName != null; + } + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The subscription ID for the instance. + /// + /// + [AWSProperty(Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the Add On instance was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/AddonSubscription.cs b/sdk/src/Services/MailManager/Generated/Model/AddonSubscription.cs new file mode 100644 index 000000000000..9681bf35e488 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/AddonSubscription.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A subscription for an Add On representing the acceptance of its terms of use and additional + /// pricing. + /// + public partial class AddonSubscription + { + private string _addonName; + private string _addonSubscriptionArn; + private string _addonSubscriptionId; + private DateTime? _createdTimestamp; + + /// + /// Gets and sets the property AddonName. + /// + /// The name of the Add On. + /// + /// + public string AddonName + { + get { return this._addonName; } + set { this._addonName = value; } + } + + // Check to see if AddonName property is set + internal bool IsSetAddonName() + { + return this._addonName != null; + } + + /// + /// Gets and sets the property AddonSubscriptionArn. + /// + /// The Amazon Resource Name (ARN) of the Add On subscription. + /// + /// + public string AddonSubscriptionArn + { + get { return this._addonSubscriptionArn; } + set { this._addonSubscriptionArn = value; } + } + + // Check to see if AddonSubscriptionArn property is set + internal bool IsSetAddonSubscriptionArn() + { + return this._addonSubscriptionArn != null; + } + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The unique ID of the Add On subscription. + /// + /// + [AWSProperty(Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the Add On subscription was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/AmazonMailManagerRequest.cs b/sdk/src/Services/MailManager/Generated/Model/AmazonMailManagerRequest.cs new file mode 100644 index 000000000000..b6769b91620c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/AmazonMailManagerRequest.cs @@ -0,0 +1,30 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using Amazon.Runtime; + +namespace Amazon.MailManager +{ + /// + /// Base class for MailManager operation requests. + /// + public partial class AmazonMailManagerRequest : AmazonWebServiceRequest + { + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Analysis.cs b/sdk/src/Services/MailManager/Generated/Model/Analysis.cs new file mode 100644 index 000000000000..756728f7bc42 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Analysis.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The result of an analysis can be used in conditions to trigger actions. Analyses can + /// inspect the email content and report a certain aspect of the email. + /// + public partial class Analysis + { + private string _analyzer; + private string _resultField; + + /// + /// Gets and sets the property Analyzer. + /// + /// The Amazon Resource Name (ARN) of an Add On. + /// + /// + [AWSProperty(Required=true)] + public string Analyzer + { + get { return this._analyzer; } + set { this._analyzer = value; } + } + + // Check to see if Analyzer property is set + internal bool IsSetAnalyzer() + { + return this._analyzer != null; + } + + /// + /// Gets and sets the property ResultField. + /// + /// The returned value from an Add On. + /// + /// + [AWSProperty(Required=true, Min=1, Max=256)] + public string ResultField + { + get { return this._resultField; } + set { this._resultField = value; } + } + + // Check to see if ResultField property is set + internal bool IsSetResultField() + { + return this._resultField != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Archive.cs b/sdk/src/Services/MailManager/Generated/Model/Archive.cs new file mode 100644 index 000000000000..c2a2a081cfc7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Archive.cs @@ -0,0 +1,127 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// An archive resource for storing and retaining emails. + /// + public partial class Archive + { + private string _archiveId; + private string _archiveName; + private ArchiveState _archiveState; + private DateTime? _lastUpdatedTimestamp; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The unique identifier of the archive. + /// + /// + [AWSProperty(Required=true, Min=1, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property ArchiveName. + /// + /// The unique name assigned to the archive. + /// + /// + [AWSProperty(Min=1, Max=64)] + public string ArchiveName + { + get { return this._archiveName; } + set { this._archiveName = value; } + } + + // Check to see if ArchiveName property is set + internal bool IsSetArchiveName() + { + return this._archiveName != null; + } + + /// + /// Gets and sets the property ArchiveState. + /// + /// The current state of the archive: + /// + ///
  • + /// + /// ACTIVE – The archive is ready and available for use. + /// + ///
  • + /// + /// PENDING_DELETION – The archive has been marked for deletion and will be permanently + /// deleted in 30 days. No further modifications can be made in this state. + /// + ///
+ ///
+ public ArchiveState ArchiveState + { + get { return this._archiveState; } + set { this._archiveState = value; } + } + + // Check to see if ArchiveState property is set + internal bool IsSetArchiveState() + { + return this._archiveState != null; + } + + /// + /// Gets and sets the property LastUpdatedTimestamp. + /// + /// The timestamp of when the archive was last updated. + /// + /// + public DateTime LastUpdatedTimestamp + { + get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } + set { this._lastUpdatedTimestamp = value; } + } + + // Check to see if LastUpdatedTimestamp property is set + internal bool IsSetLastUpdatedTimestamp() + { + return this._lastUpdatedTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveAction.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveAction.cs new file mode 100644 index 000000000000..5cffea602ab7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveAction.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The action to archive the email by delivering the email to an Amazon SES archive. + /// + public partial class ArchiveAction + { + private ActionFailurePolicy _actionFailurePolicy; + private string _targetArchive; + + /// + /// Gets and sets the property ActionFailurePolicy. + /// + /// A policy that states what to do in the case of failure. The action will fail if there + /// are configuration errors. For example, the specified archive has been deleted. + /// + /// + public ActionFailurePolicy ActionFailurePolicy + { + get { return this._actionFailurePolicy; } + set { this._actionFailurePolicy = value; } + } + + // Check to see if ActionFailurePolicy property is set + internal bool IsSetActionFailurePolicy() + { + return this._actionFailurePolicy != null; + } + + /// + /// Gets and sets the property TargetArchive. + /// + /// The identifier of the archive to send the email to. + /// + /// + [AWSProperty(Required=true, Min=1, Max=2048)] + public string TargetArchive + { + get { return this._targetArchive; } + set { this._targetArchive = value; } + } + + // Check to see if TargetArchive property is set + internal bool IsSetTargetArchive() + { + return this._targetArchive != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanExpression.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanExpression.cs new file mode 100644 index 000000000000..7b339ea56ab3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanExpression.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A boolean expression to evaluate email attribute values. + /// + public partial class ArchiveBooleanExpression + { + private ArchiveBooleanToEvaluate _evaluate; + private ArchiveBooleanOperator _operator; + + /// + /// Gets and sets the property Evaluate. + /// + /// The email attribute value to evaluate. + /// + /// + [AWSProperty(Required=true)] + public ArchiveBooleanToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The boolean operator to use for evaluation. + /// + /// + [AWSProperty(Required=true)] + public ArchiveBooleanOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanToEvaluate.cs new file mode 100644 index 000000000000..6ea1ec8de889 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveBooleanToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The attribute to evaluate in a boolean expression. + /// + public partial class ArchiveBooleanToEvaluate + { + private ArchiveBooleanEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The name of the email attribute to evaluate. + /// + /// + public ArchiveBooleanEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveFilterCondition.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveFilterCondition.cs new file mode 100644 index 000000000000..b772e3009140 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveFilterCondition.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A filter condition used to include or exclude emails when exporting from or searching + /// an archive. + /// + public partial class ArchiveFilterCondition + { + private ArchiveBooleanExpression _booleanExpression; + private ArchiveStringExpression _stringExpression; + + /// + /// Gets and sets the property BooleanExpression. + /// + /// A boolean expression to evaluate against email attributes. + /// + /// + public ArchiveBooleanExpression BooleanExpression + { + get { return this._booleanExpression; } + set { this._booleanExpression = value; } + } + + // Check to see if BooleanExpression property is set + internal bool IsSetBooleanExpression() + { + return this._booleanExpression != null; + } + + /// + /// Gets and sets the property StringExpression. + /// + /// A string expression to evaluate against email attributes. + /// + /// + public ArchiveStringExpression StringExpression + { + get { return this._stringExpression; } + set { this._stringExpression = value; } + } + + // Check to see if StringExpression property is set + internal bool IsSetStringExpression() + { + return this._stringExpression != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveFilters.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveFilters.cs new file mode 100644 index 000000000000..b437f4008863 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveFilters.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A set of filter conditions to include and/or exclude emails. + /// + public partial class ArchiveFilters + { + private List _include = AWSConfigs.InitializeCollections ? new List() : null; + private List _unless = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Include. + /// + /// The filter conditions for emails to include. + /// + /// + [AWSProperty(Min=0, Max=10)] + public List Include + { + get { return this._include; } + set { this._include = value; } + } + + // Check to see if Include property is set + internal bool IsSetInclude() + { + return this._include != null && (this._include.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property Unless. + /// + /// The filter conditions for emails to exclude. + /// + /// + [AWSProperty(Min=0, Max=10)] + public List Unless + { + get { return this._unless; } + set { this._unless = value; } + } + + // Check to see if Unless property is set + internal bool IsSetUnless() + { + return this._unless != null && (this._unless.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveRetention.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveRetention.cs new file mode 100644 index 000000000000..182ae19d8422 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveRetention.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The retention policy for an email archive that specifies how long emails are kept + /// before being automatically deleted. + /// + public partial class ArchiveRetention + { + private RetentionPeriod _retentionPeriod; + + /// + /// Gets and sets the property RetentionPeriod. + /// + /// The enum value sets the period for retaining emails in an archive. + /// + /// + public RetentionPeriod RetentionPeriod + { + get { return this._retentionPeriod; } + set { this._retentionPeriod = value; } + } + + // Check to see if RetentionPeriod property is set + internal bool IsSetRetentionPeriod() + { + return this._retentionPeriod != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveStringExpression.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveStringExpression.cs new file mode 100644 index 000000000000..1020d249f9a7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveStringExpression.cs @@ -0,0 +1,100 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A string expression to evaluate an email attribute value against one or more string + /// values. + /// + public partial class ArchiveStringExpression + { + private ArchiveStringToEvaluate _evaluate; + private ArchiveStringOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Evaluate. + /// + /// The attribute of the email to evaluate. + /// + /// + [AWSProperty(Required=true)] + public ArchiveStringToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The operator to use when evaluating the string values. + /// + /// + [AWSProperty(Required=true)] + public ArchiveStringOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The list of string values to evaluate the email attribute against. + /// + /// + [AWSProperty(Required=true, Min=1, Max=10)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ArchiveStringToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/ArchiveStringToEvaluate.cs new file mode 100644 index 000000000000..01c99d9f5b46 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ArchiveStringToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Specifies the email attribute to evaluate in a string expression. + /// + public partial class ArchiveStringToEvaluate + { + private ArchiveStringEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The name of the email attribute to evaluate. + /// + /// + public ArchiveStringEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ConflictException.cs b/sdk/src/Services/MailManager/Generated/Model/ConflictException.cs new file mode 100644 index 000000000000..c47bb2878488 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ConflictException.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ConflictException : AmazonMailManagerException + { + + /// + /// Constructs a new ConflictException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ConflictException(string message) + : base(message) {} + + /// + /// Construct instance of ConflictException + /// + /// + /// + public ConflictException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ConflictException + /// + /// + public ConflictException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ConflictException + /// + /// + /// + /// + /// + /// + /// + public ConflictException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ConflictException + /// + /// + /// + /// + /// + /// + public ConflictException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ConflictException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceRequest.cs new file mode 100644 index 000000000000..87da14004fc1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceRequest.cs @@ -0,0 +1,104 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateAddonInstance operation. + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + public partial class CreateAddonInstanceRequest : AmazonMailManagerRequest + { + private string _addonSubscriptionId; + private string _clientToken; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The unique ID of a previously created subscription that an Add On instance is created + /// for. You can only have one instance per subscription. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token that Amazon SES uses to recognize subsequent retries of the same request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceResponse.cs new file mode 100644 index 000000000000..be2fa9310147 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateAddonInstanceResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the CreateAddonInstance operation. + /// + public partial class CreateAddonInstanceResponse : AmazonWebServiceResponse + { + private string _addonInstanceId; + + /// + /// Gets and sets the property AddonInstanceId. + /// + /// The unique ID of the Add On instance created by this API. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonInstanceId + { + get { return this._addonInstanceId; } + set { this._addonInstanceId = value; } + } + + // Check to see if AddonInstanceId property is set + internal bool IsSetAddonInstanceId() + { + return this._addonInstanceId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionRequest.cs new file mode 100644 index 000000000000..670bbb9413ac --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionRequest.cs @@ -0,0 +1,104 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateAddonSubscription operation. + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + public partial class CreateAddonSubscriptionRequest : AmazonMailManagerRequest + { + private string _addonName; + private string _clientToken; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property AddonName. + /// + /// The name of the Add On to subscribe to. You can only have one subscription for each + /// Add On name. + /// + /// + [AWSProperty(Required=true)] + public string AddonName + { + get { return this._addonName; } + set { this._addonName = value; } + } + + // Check to see if AddonName property is set + internal bool IsSetAddonName() + { + return this._addonName != null; + } + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token that Amazon SES uses to recognize subsequent retries of the same request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionResponse.cs new file mode 100644 index 000000000000..1bf5f8f20bc1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateAddonSubscriptionResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the CreateAddonSubscription operation. + /// + public partial class CreateAddonSubscriptionResponse : AmazonWebServiceResponse + { + private string _addonSubscriptionId; + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The unique ID of the Add On subscription created by this API. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateArchiveRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateArchiveRequest.cs new file mode 100644 index 000000000000..e1f54708a3be --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateArchiveRequest.cs @@ -0,0 +1,139 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateArchive operation. + /// Creates a new email archive resource for storing and retaining emails. + /// + public partial class CreateArchiveRequest : AmazonMailManagerRequest + { + private string _archiveName; + private string _clientToken; + private string _kmsKeyArn; + private ArchiveRetention _retention; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property ArchiveName. + /// + /// A unique name for the new archive. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string ArchiveName + { + get { return this._archiveName; } + set { this._archiveName = value; } + } + + // Check to see if ArchiveName property is set + internal bool IsSetArchiveName() + { + return this._archiveName != null; + } + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token Amazon SES uses to recognize retries of this request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property KmsKeyArn. + /// + /// The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive. + /// + /// + public string KmsKeyArn + { + get { return this._kmsKeyArn; } + set { this._kmsKeyArn = value; } + } + + // Check to see if KmsKeyArn property is set + internal bool IsSetKmsKeyArn() + { + return this._kmsKeyArn != null; + } + + /// + /// Gets and sets the property Retention. + /// + /// The period for retaining emails in the archive before automatic deletion. + /// + /// + public ArchiveRetention Retention + { + get { return this._retention; } + set { this._retention = value; } + } + + // Check to see if Retention property is set + internal bool IsSetRetention() + { + return this._retention != null; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateArchiveResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateArchiveResponse.cs new file mode 100644 index 000000000000..669c1213857a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateArchiveResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response from creating a new email archive. + /// + public partial class CreateArchiveResponse : AmazonWebServiceResponse + { + private string _archiveId; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The unique identifier for the newly created archive. + /// + /// + [AWSProperty(Required=true, Min=1, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateIngressPointRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateIngressPointRequest.cs new file mode 100644 index 000000000000..32332d7c8f0f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateIngressPointRequest.cs @@ -0,0 +1,182 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateIngressPoint operation. + /// Provision a new ingress endpoint resource. + /// + public partial class CreateIngressPointRequest : AmazonMailManagerRequest + { + private string _clientToken; + private IngressPointConfiguration _ingressPointConfiguration; + private string _ingressPointName; + private string _ruleSetId; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + private string _trafficPolicyId; + private IngressPointType _type; + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token that Amazon SES uses to recognize subsequent retries of the same request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property IngressPointConfiguration. + /// + /// If you choose an Authenticated ingress endpoint, you must configure either an SMTP + /// password or a secret ARN. + /// + /// + public IngressPointConfiguration IngressPointConfiguration + { + get { return this._ingressPointConfiguration; } + set { this._ingressPointConfiguration = value; } + } + + // Check to see if IngressPointConfiguration property is set + internal bool IsSetIngressPointConfiguration() + { + return this._ingressPointConfiguration != null; + } + + /// + /// Gets and sets the property IngressPointName. + /// + /// A user friendly name for an ingress endpoint resource. + /// + /// + [AWSProperty(Required=true, Min=3, Max=63)] + public string IngressPointName + { + get { return this._ingressPointName; } + set { this._ingressPointName = value; } + } + + // Check to see if IngressPointName property is set + internal bool IsSetIngressPointName() + { + return this._ingressPointName != null; + } + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of an existing rule set that you attach to an ingress endpoint resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of an existing traffic policy that you attach to an ingress endpoint + /// resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + /// + /// Gets and sets the property Type. + /// + /// The type of the ingress endpoint to create. + /// + /// + [AWSProperty(Required=true)] + public IngressPointType Type + { + get { return this._type; } + set { this._type = value; } + } + + // Check to see if Type property is set + internal bool IsSetType() + { + return this._type != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateIngressPointResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateIngressPointResponse.cs new file mode 100644 index 000000000000..9bce89c1ffb2 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateIngressPointResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the CreateIngressPoint operation. + /// + public partial class CreateIngressPointResponse : AmazonWebServiceResponse + { + private string _ingressPointId; + + /// + /// Gets and sets the property IngressPointId. + /// + /// The unique identifier for a previously created ingress endpoint. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string IngressPointId + { + get { return this._ingressPointId; } + set { this._ingressPointId = value; } + } + + // Check to see if IngressPointId property is set + internal bool IsSetIngressPointId() + { + return this._ingressPointId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateRelayRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateRelayRequest.cs new file mode 100644 index 000000000000..fcefd377b036 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateRelayRequest.cs @@ -0,0 +1,163 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateRelay operation. + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + public partial class CreateRelayRequest : AmazonMailManagerRequest + { + private RelayAuthentication _authentication; + private string _clientToken; + private string _relayName; + private string _serverName; + private int? _serverPort; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Authentication. + /// + /// Authentication for the relay destination server—specify the secretARN where the SMTP + /// credentials are stored. + /// + /// + [AWSProperty(Required=true)] + public RelayAuthentication Authentication + { + get { return this._authentication; } + set { this._authentication = value; } + } + + // Check to see if Authentication property is set + internal bool IsSetAuthentication() + { + return this._authentication != null; + } + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token that Amazon SES uses to recognize subsequent retries of the same request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property RelayName. + /// + /// The unique name of the relay resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RelayName + { + get { return this._relayName; } + set { this._relayName = value; } + } + + // Check to see if RelayName property is set + internal bool IsSetRelayName() + { + return this._relayName != null; + } + + /// + /// Gets and sets the property ServerName. + /// + /// The destination relay server address. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string ServerName + { + get { return this._serverName; } + set { this._serverName = value; } + } + + // Check to see if ServerName property is set + internal bool IsSetServerName() + { + return this._serverName != null; + } + + /// + /// Gets and sets the property ServerPort. + /// + /// The destination relay server port. + /// + /// + [AWSProperty(Required=true, Min=1, Max=65535)] + public int ServerPort + { + get { return this._serverPort.GetValueOrDefault(); } + set { this._serverPort = value; } + } + + // Check to see if ServerPort property is set + internal bool IsSetServerPort() + { + return this._serverPort.HasValue; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateRelayResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateRelayResponse.cs new file mode 100644 index 000000000000..df17ec1ab4a5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateRelayResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the CreateRelay operation. + /// + public partial class CreateRelayResponse : AmazonWebServiceResponse + { + private string _relayId; + + /// + /// Gets and sets the property RelayId. + /// + /// A unique identifier of the created relay resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RelayId + { + get { return this._relayId; } + set { this._relayId = value; } + } + + // Check to see if RelayId property is set + internal bool IsSetRelayId() + { + return this._relayId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateRuleSetRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateRuleSetRequest.cs new file mode 100644 index 000000000000..523d685dec10 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateRuleSetRequest.cs @@ -0,0 +1,121 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateRuleSet operation. + /// Provision a new rule set. + /// + public partial class CreateRuleSetRequest : AmazonMailManagerRequest + { + private string _clientToken; + private List _rules = AWSConfigs.InitializeCollections ? new List() : null; + private string _ruleSetName; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token that Amazon SES uses to recognize subsequent retries of the same request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property Rules. + /// + /// Conditional rules that are evaluated for determining actions on email. + /// + /// + [AWSProperty(Required=true, Min=0, Max=40)] + public List Rules + { + get { return this._rules; } + set { this._rules = value; } + } + + // Check to see if Rules property is set + internal bool IsSetRules() + { + return this._rules != null && (this._rules.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property RuleSetName. + /// + /// A user-friendly name for the rule set. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetName + { + get { return this._ruleSetName; } + set { this._ruleSetName = value; } + } + + // Check to see if RuleSetName property is set + internal bool IsSetRuleSetName() + { + return this._ruleSetName != null; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateRuleSetResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateRuleSetResponse.cs new file mode 100644 index 000000000000..a77896645814 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateRuleSetResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the CreateRuleSet operation. + /// + public partial class CreateRuleSetResponse : AmazonWebServiceResponse + { + private string _ruleSetId; + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of the created rule set. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyRequest.cs b/sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyRequest.cs new file mode 100644 index 000000000000..af548756dc62 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyRequest.cs @@ -0,0 +1,163 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the CreateTrafficPolicy operation. + /// Provision a new traffic policy resource. + /// + public partial class CreateTrafficPolicyRequest : AmazonMailManagerRequest + { + private string _clientToken; + private AcceptAction _defaultAction; + private int? _maxMessageSizeBytes; + private List _policyStatements = AWSConfigs.InitializeCollections ? new List() : null; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + private string _trafficPolicyName; + + /// + /// Gets and sets the property ClientToken. + /// + /// A unique token that Amazon SES uses to recognize subsequent retries of the same request. + /// + /// + [AWSProperty(Min=1, Max=128)] + public string ClientToken + { + get { return this._clientToken; } + set { this._clientToken = value; } + } + + // Check to see if ClientToken property is set + internal bool IsSetClientToken() + { + return this._clientToken != null; + } + + /// + /// Gets and sets the property DefaultAction. + /// + /// Default action instructs the traffic policy to either Allow or Deny (block) messages + /// that fall outside of (or not addressed by) the conditions of your policy statements + /// + /// + [AWSProperty(Required=true)] + public AcceptAction DefaultAction + { + get { return this._defaultAction; } + set { this._defaultAction = value; } + } + + // Check to see if DefaultAction property is set + internal bool IsSetDefaultAction() + { + return this._defaultAction != null; + } + + /// + /// Gets and sets the property MaxMessageSizeBytes. + /// + /// The maximum message size in bytes of email which is allowed in by this traffic policy—anything + /// larger will be blocked. + /// + /// + [AWSProperty(Min=1)] + public int MaxMessageSizeBytes + { + get { return this._maxMessageSizeBytes.GetValueOrDefault(); } + set { this._maxMessageSizeBytes = value; } + } + + // Check to see if MaxMessageSizeBytes property is set + internal bool IsSetMaxMessageSizeBytes() + { + return this._maxMessageSizeBytes.HasValue; + } + + /// + /// Gets and sets the property PolicyStatements. + /// + /// Conditional statements for filtering email traffic. + /// + /// + [AWSProperty(Required=true)] + public List PolicyStatements + { + get { return this._policyStatements; } + set { this._policyStatements = value; } + } + + // Check to see if PolicyStatements property is set + internal bool IsSetPolicyStatements() + { + return this._policyStatements != null && (this._policyStatements.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property TrafficPolicyName. + /// + /// A user-friendly name for the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=3, Max=63)] + public string TrafficPolicyName + { + get { return this._trafficPolicyName; } + set { this._trafficPolicyName = value; } + } + + // Check to see if TrafficPolicyName property is set + internal bool IsSetTrafficPolicyName() + { + return this._trafficPolicyName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyResponse.cs b/sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyResponse.cs new file mode 100644 index 000000000000..703c34b1c825 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/CreateTrafficPolicyResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the CreateTrafficPolicy operation. + /// + public partial class CreateTrafficPolicyResponse : AmazonWebServiceResponse + { + private string _trafficPolicyId; + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceRequest.cs new file mode 100644 index 000000000000..50edfb5995c4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteAddonInstance operation. + /// Deletes an Add On instance. + /// + public partial class DeleteAddonInstanceRequest : AmazonMailManagerRequest + { + private string _addonInstanceId; + + /// + /// Gets and sets the property AddonInstanceId. + /// + /// The Add On instance ID to delete. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonInstanceId + { + get { return this._addonInstanceId; } + set { this._addonInstanceId = value; } + } + + // Check to see if AddonInstanceId property is set + internal bool IsSetAddonInstanceId() + { + return this._addonInstanceId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceResponse.cs new file mode 100644 index 000000000000..b13cc7aa0405 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonInstanceResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the DeleteAddonInstance operation. + /// + public partial class DeleteAddonInstanceResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionRequest.cs new file mode 100644 index 000000000000..6fb856b4b784 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteAddonSubscription operation. + /// Deletes an Add On subscription. + /// + public partial class DeleteAddonSubscriptionRequest : AmazonMailManagerRequest + { + private string _addonSubscriptionId; + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The Add On subscription ID to delete. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionResponse.cs new file mode 100644 index 000000000000..cce5f524668d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteAddonSubscriptionResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the DeleteAddonSubscription operation. + /// + public partial class DeleteAddonSubscriptionResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteArchiveRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteArchiveRequest.cs new file mode 100644 index 000000000000..a08909d2df67 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteArchiveRequest.cs @@ -0,0 +1,64 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteArchive operation. + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + public partial class DeleteArchiveRequest : AmazonMailManagerRequest + { + private string _archiveId; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive to delete. + /// + /// + [AWSProperty(Required=true, Min=1, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteArchiveResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteArchiveResponse.cs new file mode 100644 index 000000000000..1defe5b7fbd9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteArchiveResponse.cs @@ -0,0 +1,44 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response indicating if the archive deletion was successfully initiated. + /// + /// + /// + /// On success, returns an HTTP 200 status code. On failure, returns an error message. + /// + /// + public partial class DeleteArchiveResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointRequest.cs new file mode 100644 index 000000000000..3bc07ae9e7bc --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteIngressPoint operation. + /// Delete an ingress endpoint resource. + /// + public partial class DeleteIngressPointRequest : AmazonMailManagerRequest + { + private string _ingressPointId; + + /// + /// Gets and sets the property IngressPointId. + /// + /// The identifier of the ingress endpoint resource that you want to delete. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string IngressPointId + { + get { return this._ingressPointId; } + set { this._ingressPointId = value; } + } + + // Check to see if IngressPointId property is set + internal bool IsSetIngressPointId() + { + return this._ingressPointId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointResponse.cs new file mode 100644 index 000000000000..43d076a76890 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteIngressPointResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the DeleteIngressPoint operation. + /// + public partial class DeleteIngressPointResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteRelayRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteRelayRequest.cs new file mode 100644 index 000000000000..7fcd528b84ab --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteRelayRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteRelay operation. + /// Deletes an existing relay resource. + /// + public partial class DeleteRelayRequest : AmazonMailManagerRequest + { + private string _relayId; + + /// + /// Gets and sets the property RelayId. + /// + /// The unique relay identifier. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RelayId + { + get { return this._relayId; } + set { this._relayId = value; } + } + + // Check to see if RelayId property is set + internal bool IsSetRelayId() + { + return this._relayId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteRelayResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteRelayResponse.cs new file mode 100644 index 000000000000..9eed4262c261 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteRelayResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the DeleteRelay operation. + /// + public partial class DeleteRelayResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetRequest.cs new file mode 100644 index 000000000000..495179391750 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteRuleSet operation. + /// Delete a rule set. + /// + public partial class DeleteRuleSetRequest : AmazonMailManagerRequest + { + private string _ruleSetId; + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of an existing rule set resource to delete. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetResponse.cs new file mode 100644 index 000000000000..4d5070a7dd13 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteRuleSetResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the DeleteRuleSet operation. + /// + public partial class DeleteRuleSetResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyRequest.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyRequest.cs new file mode 100644 index 000000000000..8d14d854f3cc --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the DeleteTrafficPolicy operation. + /// Delete a traffic policy resource. + /// + public partial class DeleteTrafficPolicyRequest : AmazonMailManagerRequest + { + private string _trafficPolicyId; + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy that you want to delete. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyResponse.cs b/sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyResponse.cs new file mode 100644 index 000000000000..ba7ed84ed027 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeleteTrafficPolicyResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the DeleteTrafficPolicy operation. + /// + public partial class DeleteTrafficPolicyResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DeliverToMailboxAction.cs b/sdk/src/Services/MailManager/Generated/Model/DeliverToMailboxAction.cs new file mode 100644 index 000000000000..59f4eeb89013 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DeliverToMailboxAction.cs @@ -0,0 +1,100 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This action to delivers an email to a mailbox. + /// + public partial class DeliverToMailboxAction + { + private ActionFailurePolicy _actionFailurePolicy; + private string _mailboxArn; + private string _roleArn; + + /// + /// Gets and sets the property ActionFailurePolicy. + /// + /// A policy that states what to do in the case of failure. The action will fail if there + /// are configuration errors. For example, the mailbox ARN is no longer valid. + /// + /// + public ActionFailurePolicy ActionFailurePolicy + { + get { return this._actionFailurePolicy; } + set { this._actionFailurePolicy = value; } + } + + // Check to see if ActionFailurePolicy property is set + internal bool IsSetActionFailurePolicy() + { + return this._actionFailurePolicy != null; + } + + /// + /// Gets and sets the property MailboxArn. + /// + /// The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to. + /// + /// + [AWSProperty(Required=true, Min=1, Max=2048)] + public string MailboxArn + { + get { return this._mailboxArn; } + set { this._mailboxArn = value; } + } + + // Check to see if MailboxArn property is set + internal bool IsSetMailboxArn() + { + return this._mailboxArn != null; + } + + /// + /// Gets and sets the property RoleArn. + /// + /// The Amazon Resource Name (ARN) of an IAM role to use to execute this action. The role + /// must have access to the workmail:DeliverToMailbox API. + /// + /// + [AWSProperty(Required=true, Min=20, Max=2048)] + public string RoleArn + { + get { return this._roleArn; } + set { this._roleArn = value; } + } + + // Check to see if RoleArn property is set + internal bool IsSetRoleArn() + { + return this._roleArn != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/DropAction.cs b/sdk/src/Services/MailManager/Generated/Model/DropAction.cs new file mode 100644 index 000000000000..2a2849c64ed0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/DropAction.cs @@ -0,0 +1,41 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This action causes processing to stop and the email to be dropped. If the action applies + /// only to certain recipients, only those recipients are dropped, and processing continues + /// for other recipients. + /// + public partial class DropAction + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ExportDestinationConfiguration.cs b/sdk/src/Services/MailManager/Generated/Model/ExportDestinationConfiguration.cs new file mode 100644 index 000000000000..17c16c6b57db --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ExportDestinationConfiguration.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The destination configuration for delivering exported email data. + /// + public partial class ExportDestinationConfiguration + { + private S3ExportDestinationConfiguration _s3; + + /// + /// Gets and sets the property S3. + /// + /// Configuration for delivering to an Amazon S3 bucket. + /// + /// + public S3ExportDestinationConfiguration S3 + { + get { return this._s3; } + set { this._s3 = value; } + } + + // Check to see if S3 property is set + internal bool IsSetS3() + { + return this._s3 != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ExportStatus.cs b/sdk/src/Services/MailManager/Generated/Model/ExportStatus.cs new file mode 100644 index 000000000000..e67d0d84c2f8 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ExportStatus.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The current status of an archive export job. + /// + public partial class ExportStatus + { + private DateTime? _completionTimestamp; + private string _errorMessage; + private ExportState _state; + private DateTime? _submissionTimestamp; + + /// + /// Gets and sets the property CompletionTimestamp. + /// + /// The timestamp of when the export job completed (if finished). + /// + /// + public DateTime CompletionTimestamp + { + get { return this._completionTimestamp.GetValueOrDefault(); } + set { this._completionTimestamp = value; } + } + + // Check to see if CompletionTimestamp property is set + internal bool IsSetCompletionTimestamp() + { + return this._completionTimestamp.HasValue; + } + + /// + /// Gets and sets the property ErrorMessage. + /// + /// An error message if the export job failed. + /// + /// + public string ErrorMessage + { + get { return this._errorMessage; } + set { this._errorMessage = value; } + } + + // Check to see if ErrorMessage property is set + internal bool IsSetErrorMessage() + { + return this._errorMessage != null; + } + + /// + /// Gets and sets the property State. + /// + /// The current state of the export job. + /// + /// + public ExportState State + { + get { return this._state; } + set { this._state = value; } + } + + // Check to see if State property is set + internal bool IsSetState() + { + return this._state != null; + } + + /// + /// Gets and sets the property SubmissionTimestamp. + /// + /// The timestamp of when the export job was submitted. + /// + /// + public DateTime SubmissionTimestamp + { + get { return this._submissionTimestamp.GetValueOrDefault(); } + set { this._submissionTimestamp = value; } + } + + // Check to see if SubmissionTimestamp property is set + internal bool IsSetSubmissionTimestamp() + { + return this._submissionTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ExportSummary.cs b/sdk/src/Services/MailManager/Generated/Model/ExportSummary.cs new file mode 100644 index 000000000000..969ca3634975 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ExportSummary.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Summary statuses of an archive export job. + /// + public partial class ExportSummary + { + private string _exportId; + private ExportStatus _status; + + /// + /// Gets and sets the property ExportId. + /// + /// The unique identifier of the export job. + /// + /// + [AWSProperty(Min=1, Max=64)] + public string ExportId + { + get { return this._exportId; } + set { this._exportId = value; } + } + + // Check to see if ExportId property is set + internal bool IsSetExportId() + { + return this._exportId != null; + } + + /// + /// Gets and sets the property Status. + /// + /// The current status of the export job. + /// + /// + public ExportStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceRequest.cs new file mode 100644 index 000000000000..1be09d4279a7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetAddonInstance operation. + /// Gets detailed information about an Add On instance. + /// + public partial class GetAddonInstanceRequest : AmazonMailManagerRequest + { + private string _addonInstanceId; + + /// + /// Gets and sets the property AddonInstanceId. + /// + /// The Add On instance ID to retrieve information for. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonInstanceId + { + get { return this._addonInstanceId; } + set { this._addonInstanceId = value; } + } + + // Check to see if AddonInstanceId property is set + internal bool IsSetAddonInstanceId() + { + return this._addonInstanceId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceResponse.cs new file mode 100644 index 000000000000..c39bf7f37b77 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetAddonInstanceResponse.cs @@ -0,0 +1,116 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the GetAddonInstance operation. + /// + public partial class GetAddonInstanceResponse : AmazonWebServiceResponse + { + private string _addonInstanceArn; + private string _addonName; + private string _addonSubscriptionId; + private DateTime? _createdTimestamp; + + /// + /// Gets and sets the property AddonInstanceArn. + /// + /// The Amazon Resource Name (ARN) of the Add On instance. + /// + /// + public string AddonInstanceArn + { + get { return this._addonInstanceArn; } + set { this._addonInstanceArn = value; } + } + + // Check to see if AddonInstanceArn property is set + internal bool IsSetAddonInstanceArn() + { + return this._addonInstanceArn != null; + } + + /// + /// Gets and sets the property AddonName. + /// + /// The name of the Add On provider associated to the subscription of the instance. + /// + /// + public string AddonName + { + get { return this._addonName; } + set { this._addonName = value; } + } + + // Check to see if AddonName property is set + internal bool IsSetAddonName() + { + return this._addonName != null; + } + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The subscription ID associated to the instance. + /// + /// + [AWSProperty(Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the Add On instance was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionRequest.cs new file mode 100644 index 000000000000..fe18d8e282e3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetAddonSubscription operation. + /// Gets detailed information about an Add On subscription. + /// + public partial class GetAddonSubscriptionRequest : AmazonMailManagerRequest + { + private string _addonSubscriptionId; + + /// + /// Gets and sets the property AddonSubscriptionId. + /// + /// The Add On subscription ID to retrieve information for. + /// + /// + [AWSProperty(Required=true, Min=4, Max=67)] + public string AddonSubscriptionId + { + get { return this._addonSubscriptionId; } + set { this._addonSubscriptionId = value; } + } + + // Check to see if AddonSubscriptionId property is set + internal bool IsSetAddonSubscriptionId() + { + return this._addonSubscriptionId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionResponse.cs new file mode 100644 index 000000000000..65892e6888c0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetAddonSubscriptionResponse.cs @@ -0,0 +1,96 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the GetAddonSubscription operation. + /// + public partial class GetAddonSubscriptionResponse : AmazonWebServiceResponse + { + private string _addonName; + private string _addonSubscriptionArn; + private DateTime? _createdTimestamp; + + /// + /// Gets and sets the property AddonName. + /// + /// The name of the Add On for the subscription. + /// + /// + public string AddonName + { + get { return this._addonName; } + set { this._addonName = value; } + } + + // Check to see if AddonName property is set + internal bool IsSetAddonName() + { + return this._addonName != null; + } + + /// + /// Gets and sets the property AddonSubscriptionArn. + /// + /// Amazon Resource Name (ARN) for the subscription. + /// + /// + public string AddonSubscriptionArn + { + get { return this._addonSubscriptionArn; } + set { this._addonSubscriptionArn = value; } + } + + // Check to see if AddonSubscriptionArn property is set + internal bool IsSetAddonSubscriptionArn() + { + return this._addonSubscriptionArn != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the Add On subscription was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveExportRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveExportRequest.cs new file mode 100644 index 000000000000..64bf0534b3cb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveExportRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetArchiveExport operation. + /// Retrieves the details and current status of a specific email archive export job. + /// + public partial class GetArchiveExportRequest : AmazonMailManagerRequest + { + private string _exportId; + + /// + /// Gets and sets the property ExportId. + /// + /// The identifier of the export job to get details for. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string ExportId + { + get { return this._exportId; } + set { this._exportId = value; } + } + + // Check to see if ExportId property is set + internal bool IsSetExportId() + { + return this._exportId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveExportResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveExportResponse.cs new file mode 100644 index 000000000000..a44699744441 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveExportResponse.cs @@ -0,0 +1,173 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing details of the specified archive export job. + /// + public partial class GetArchiveExportResponse : AmazonWebServiceResponse + { + private string _archiveId; + private ExportDestinationConfiguration _exportDestinationConfiguration; + private ArchiveFilters _filters; + private DateTime? _fromTimestamp; + private int? _maxResults; + private ExportStatus _status; + private DateTime? _toTimestamp; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive the email export was performed from. + /// + /// + [AWSProperty(Min=3, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property ExportDestinationConfiguration. + /// + /// Where the exported emails are being delivered. + /// + /// + public ExportDestinationConfiguration ExportDestinationConfiguration + { + get { return this._exportDestinationConfiguration; } + set { this._exportDestinationConfiguration = value; } + } + + // Check to see if ExportDestinationConfiguration property is set + internal bool IsSetExportDestinationConfiguration() + { + return this._exportDestinationConfiguration != null; + } + + /// + /// Gets and sets the property Filters. + /// + /// The criteria used to filter emails included in the export. + /// + /// + public ArchiveFilters Filters + { + get { return this._filters; } + set { this._filters = value; } + } + + // Check to see if Filters property is set + internal bool IsSetFilters() + { + return this._filters != null; + } + + /// + /// Gets and sets the property FromTimestamp. + /// + /// The start of the timestamp range the exported emails cover. + /// + /// + public DateTime FromTimestamp + { + get { return this._fromTimestamp.GetValueOrDefault(); } + set { this._fromTimestamp = value; } + } + + // Check to see if FromTimestamp property is set + internal bool IsSetFromTimestamp() + { + return this._fromTimestamp.HasValue; + } + + /// + /// Gets and sets the property MaxResults. + /// + /// The maximum number of email items included in the export. + /// + /// + public int MaxResults + { + get { return this._maxResults.GetValueOrDefault(); } + set { this._maxResults = value; } + } + + // Check to see if MaxResults property is set + internal bool IsSetMaxResults() + { + return this._maxResults.HasValue; + } + + /// + /// Gets and sets the property Status. + /// + /// The current status of the export job. + /// + /// + public ExportStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + /// + /// Gets and sets the property ToTimestamp. + /// + /// The end of the date range the exported emails cover. + /// + /// + public DateTime ToTimestamp + { + get { return this._toTimestamp.GetValueOrDefault(); } + set { this._toTimestamp = value; } + } + + // Check to see if ToTimestamp property is set + internal bool IsSetToTimestamp() + { + return this._toTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentRequest.cs new file mode 100644 index 000000000000..2c172c440eb9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentRequest.cs @@ -0,0 +1,61 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetArchiveMessageContent operation. + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + public partial class GetArchiveMessageContentRequest : AmazonMailManagerRequest + { + private string _archivedMessageId; + + /// + /// Gets and sets the property ArchivedMessageId. + /// + /// The unique identifier of the archived email message. + /// + /// + [AWSProperty(Required=true)] + public string ArchivedMessageId + { + get { return this._archivedMessageId; } + set { this._archivedMessageId = value; } + } + + // Check to see if ArchivedMessageId property is set + internal bool IsSetArchivedMessageId() + { + return this._archivedMessageId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentResponse.cs new file mode 100644 index 000000000000..f8937402b670 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageContentResponse.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing the textual content of the requested archived email message. + /// + public partial class GetArchiveMessageContentResponse : AmazonWebServiceResponse + { + private MessageBody _body; + + /// + /// Gets and sets the property Body. + /// + /// The textual body content of the email message. + /// + /// + public MessageBody Body + { + get { return this._body; } + set { this._body = value; } + } + + // Check to see if Body property is set + internal bool IsSetBody() + { + return this._body != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageRequest.cs new file mode 100644 index 000000000000..dff974ff3760 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageRequest.cs @@ -0,0 +1,61 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetArchiveMessage operation. + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + public partial class GetArchiveMessageRequest : AmazonMailManagerRequest + { + private string _archivedMessageId; + + /// + /// Gets and sets the property ArchivedMessageId. + /// + /// The unique identifier of the archived email message. + /// + /// + [AWSProperty(Required=true)] + public string ArchivedMessageId + { + get { return this._archivedMessageId; } + set { this._archivedMessageId = value; } + } + + // Check to see if ArchivedMessageId property is set + internal bool IsSetArchivedMessageId() + { + return this._archivedMessageId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageResponse.cs new file mode 100644 index 000000000000..90dd2591b2e8 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveMessageResponse.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing details about the requested archived email message. + /// + public partial class GetArchiveMessageResponse : AmazonWebServiceResponse + { + private string _messageDownloadLink; + + /// + /// Gets and sets the property MessageDownloadLink. + /// + /// A pre-signed URL to temporarily download the full message content. + /// + /// + public string MessageDownloadLink + { + get { return this._messageDownloadLink; } + set { this._messageDownloadLink = value; } + } + + // Check to see if MessageDownloadLink property is set + internal bool IsSetMessageDownloadLink() + { + return this._messageDownloadLink != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveRequest.cs new file mode 100644 index 000000000000..d5fd4c47f1be --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetArchive operation. + /// Retrieves the full details and current state of a specified email archive. + /// + public partial class GetArchiveRequest : AmazonMailManagerRequest + { + private string _archiveId; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive to retrieve. + /// + /// + [AWSProperty(Required=true, Min=1, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveResponse.cs new file mode 100644 index 000000000000..96f3327effe1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveResponse.cs @@ -0,0 +1,206 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing details of the requested archive. + /// + public partial class GetArchiveResponse : AmazonWebServiceResponse + { + private string _archiveArn; + private string _archiveId; + private string _archiveName; + private ArchiveState _archiveState; + private DateTime? _createdTimestamp; + private string _kmsKeyArn; + private DateTime? _lastUpdatedTimestamp; + private ArchiveRetention _retention; + + /// + /// Gets and sets the property ArchiveArn. + /// + /// The Amazon Resource Name (ARN) of the archive. + /// + /// + [AWSProperty(Required=true)] + public string ArchiveArn + { + get { return this._archiveArn; } + set { this._archiveArn = value; } + } + + // Check to see if ArchiveArn property is set + internal bool IsSetArchiveArn() + { + return this._archiveArn != null; + } + + /// + /// Gets and sets the property ArchiveId. + /// + /// The unique identifier of the archive. + /// + /// + [AWSProperty(Required=true, Min=1, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property ArchiveName. + /// + /// The unique name assigned to the archive. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string ArchiveName + { + get { return this._archiveName; } + set { this._archiveName = value; } + } + + // Check to see if ArchiveName property is set + internal bool IsSetArchiveName() + { + return this._archiveName != null; + } + + /// + /// Gets and sets the property ArchiveState. + /// + /// The current state of the archive: + /// + ///
  • + /// + /// ACTIVE – The archive is ready and available for use. + /// + ///
  • + /// + /// PENDING_DELETION – The archive has been marked for deletion and will be permanently + /// deleted in 30 days. No further modifications can be made in this state. + /// + ///
+ ///
+ [AWSProperty(Required=true)] + public ArchiveState ArchiveState + { + get { return this._archiveState; } + set { this._archiveState = value; } + } + + // Check to see if ArchiveState property is set + internal bool IsSetArchiveState() + { + return this._archiveState != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the archive was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + /// + /// Gets and sets the property KmsKeyArn. + /// + /// The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive. + /// + /// + public string KmsKeyArn + { + get { return this._kmsKeyArn; } + set { this._kmsKeyArn = value; } + } + + // Check to see if KmsKeyArn property is set + internal bool IsSetKmsKeyArn() + { + return this._kmsKeyArn != null; + } + + /// + /// Gets and sets the property LastUpdatedTimestamp. + /// + /// The timestamp of when the archive was modified. + /// + /// + public DateTime LastUpdatedTimestamp + { + get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } + set { this._lastUpdatedTimestamp = value; } + } + + // Check to see if LastUpdatedTimestamp property is set + internal bool IsSetLastUpdatedTimestamp() + { + return this._lastUpdatedTimestamp.HasValue; + } + + /// + /// Gets and sets the property Retention. + /// + /// The retention period for emails in this archive. + /// + /// + [AWSProperty(Required=true)] + public ArchiveRetention Retention + { + get { return this._retention; } + set { this._retention = value; } + } + + // Check to see if Retention property is set + internal bool IsSetRetention() + { + return this._retention != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchRequest.cs new file mode 100644 index 000000000000..6f39ce8d2079 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetArchiveSearch operation. + /// Retrieves the details and current status of a specific email archive search job. + /// + public partial class GetArchiveSearchRequest : AmazonMailManagerRequest + { + private string _searchId; + + /// + /// Gets and sets the property SearchId. + /// + /// The identifier of the search job to get details for. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string SearchId + { + get { return this._searchId; } + set { this._searchId = value; } + } + + // Check to see if SearchId property is set + internal bool IsSetSearchId() + { + return this._searchId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResponse.cs new file mode 100644 index 000000000000..8d9cbe2e1dc6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResponse.cs @@ -0,0 +1,155 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing details of the specified archive search job. + /// + public partial class GetArchiveSearchResponse : AmazonWebServiceResponse + { + private string _archiveId; + private ArchiveFilters _filters; + private DateTime? _fromTimestamp; + private int? _maxResults; + private SearchStatus _status; + private DateTime? _toTimestamp; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive the email search was performed in. + /// + /// + [AWSProperty(Min=3, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property Filters. + /// + /// The criteria used to filter emails included in the search. + /// + /// + public ArchiveFilters Filters + { + get { return this._filters; } + set { this._filters = value; } + } + + // Check to see if Filters property is set + internal bool IsSetFilters() + { + return this._filters != null; + } + + /// + /// Gets and sets the property FromTimestamp. + /// + /// The start timestamp of the range the searched emails cover. + /// + /// + public DateTime FromTimestamp + { + get { return this._fromTimestamp.GetValueOrDefault(); } + set { this._fromTimestamp = value; } + } + + // Check to see if FromTimestamp property is set + internal bool IsSetFromTimestamp() + { + return this._fromTimestamp.HasValue; + } + + /// + /// Gets and sets the property MaxResults. + /// + /// The maximum number of search results to return. + /// + /// + [AWSProperty(Min=0, Max=1000)] + public int MaxResults + { + get { return this._maxResults.GetValueOrDefault(); } + set { this._maxResults = value; } + } + + // Check to see if MaxResults property is set + internal bool IsSetMaxResults() + { + return this._maxResults.HasValue; + } + + /// + /// Gets and sets the property Status. + /// + /// The current status of the search job. + /// + /// + public SearchStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + /// + /// Gets and sets the property ToTimestamp. + /// + /// The end timestamp of the range the searched emails cover. + /// + /// + public DateTime ToTimestamp + { + get { return this._toTimestamp.GetValueOrDefault(); } + set { this._toTimestamp = value; } + } + + // Check to see if ToTimestamp property is set + internal bool IsSetToTimestamp() + { + return this._toTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsRequest.cs new file mode 100644 index 000000000000..268e61209cf0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetArchiveSearchResults operation. + /// Returns the results of a completed email archive search job. + /// + public partial class GetArchiveSearchResultsRequest : AmazonMailManagerRequest + { + private string _searchId; + + /// + /// Gets and sets the property SearchId. + /// + /// The identifier of the completed search job. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string SearchId + { + get { return this._searchId; } + set { this._searchId = value; } + } + + // Check to see if SearchId property is set + internal bool IsSetSearchId() + { + return this._searchId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsResponse.cs new file mode 100644 index 000000000000..63f99ee8abf1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetArchiveSearchResultsResponse.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing search results from a completed archive search. + /// + public partial class GetArchiveSearchResultsResponse : AmazonWebServiceResponse + { + private List _rows = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Rows. + /// + /// The list of email result objects matching the search criteria. + /// + /// + public List Rows + { + get { return this._rows; } + set { this._rows = value; } + } + + // Check to see if Rows property is set + internal bool IsSetRows() + { + return this._rows != null && (this._rows.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetIngressPointRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetIngressPointRequest.cs new file mode 100644 index 000000000000..3cb0c8fac7b1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetIngressPointRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetIngressPoint operation. + /// Fetch ingress endpoint resource attributes. + /// + public partial class GetIngressPointRequest : AmazonMailManagerRequest + { + private string _ingressPointId; + + /// + /// Gets and sets the property IngressPointId. + /// + /// The identifier of an ingress endpoint. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string IngressPointId + { + get { return this._ingressPointId; } + set { this._ingressPointId = value; } + } + + // Check to see if IngressPointId property is set + internal bool IsSetIngressPointId() + { + return this._ingressPointId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetIngressPointResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetIngressPointResponse.cs new file mode 100644 index 000000000000..747561626149 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetIngressPointResponse.cs @@ -0,0 +1,253 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the GetIngressPoint operation. + /// + public partial class GetIngressPointResponse : AmazonWebServiceResponse + { + private string _aRecord; + private DateTime? _createdTimestamp; + private string _ingressPointArn; + private IngressPointAuthConfiguration _ingressPointAuthConfiguration; + private string _ingressPointId; + private string _ingressPointName; + private DateTime? _lastUpdatedTimestamp; + private string _ruleSetId; + private IngressPointStatus _status; + private string _trafficPolicyId; + private IngressPointType _type; + + /// + /// Gets and sets the property ARecord. + /// + /// The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange + /// (MX) record with this value to route emails to Mail Manager. + /// + /// + public string ARecord + { + get { return this._aRecord; } + set { this._aRecord = value; } + } + + // Check to see if ARecord property is set + internal bool IsSetARecord() + { + return this._aRecord != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the ingress endpoint was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + /// + /// Gets and sets the property IngressPointArn. + /// + /// The Amazon Resource Name (ARN) of the ingress endpoint resource. + /// + /// + public string IngressPointArn + { + get { return this._ingressPointArn; } + set { this._ingressPointArn = value; } + } + + // Check to see if IngressPointArn property is set + internal bool IsSetIngressPointArn() + { + return this._ingressPointArn != null; + } + + /// + /// Gets and sets the property IngressPointAuthConfiguration. + /// + /// The authentication configuration of the ingress endpoint resource. + /// + /// + public IngressPointAuthConfiguration IngressPointAuthConfiguration + { + get { return this._ingressPointAuthConfiguration; } + set { this._ingressPointAuthConfiguration = value; } + } + + // Check to see if IngressPointAuthConfiguration property is set + internal bool IsSetIngressPointAuthConfiguration() + { + return this._ingressPointAuthConfiguration != null; + } + + /// + /// Gets and sets the property IngressPointId. + /// + /// The identifier of an ingress endpoint resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string IngressPointId + { + get { return this._ingressPointId; } + set { this._ingressPointId = value; } + } + + // Check to see if IngressPointId property is set + internal bool IsSetIngressPointId() + { + return this._ingressPointId != null; + } + + /// + /// Gets and sets the property IngressPointName. + /// + /// A user friendly name for the ingress endpoint. + /// + /// + [AWSProperty(Required=true, Min=3, Max=63)] + public string IngressPointName + { + get { return this._ingressPointName; } + set { this._ingressPointName = value; } + } + + // Check to see if IngressPointName property is set + internal bool IsSetIngressPointName() + { + return this._ingressPointName != null; + } + + /// + /// Gets and sets the property LastUpdatedTimestamp. + /// + /// The timestamp of when the ingress endpoint was last updated. + /// + /// + public DateTime LastUpdatedTimestamp + { + get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } + set { this._lastUpdatedTimestamp = value; } + } + + // Check to see if LastUpdatedTimestamp property is set + internal bool IsSetLastUpdatedTimestamp() + { + return this._lastUpdatedTimestamp.HasValue; + } + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of a rule set resource associated with the ingress endpoint. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + /// + /// Gets and sets the property Status. + /// + /// The status of the ingress endpoint resource. + /// + /// + public IngressPointStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy resource associated with the ingress endpoint. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + /// + /// Gets and sets the property Type. + /// + /// The type of ingress endpoint. + /// + /// + public IngressPointType Type + { + get { return this._type; } + set { this._type = value; } + } + + // Check to see if Type property is set + internal bool IsSetType() + { + return this._type != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetRelayRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetRelayRequest.cs new file mode 100644 index 000000000000..85868ce988a1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetRelayRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetRelay operation. + /// Fetch the relay resource and it's attributes. + /// + public partial class GetRelayRequest : AmazonMailManagerRequest + { + private string _relayId; + + /// + /// Gets and sets the property RelayId. + /// + /// A unique relay identifier. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RelayId + { + get { return this._relayId; } + set { this._relayId = value; } + } + + // Check to see if RelayId property is set + internal bool IsSetRelayId() + { + return this._relayId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetRelayResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetRelayResponse.cs new file mode 100644 index 000000000000..fc28a5ecd48e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetRelayResponse.cs @@ -0,0 +1,196 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the GetRelay operation. + /// + public partial class GetRelayResponse : AmazonWebServiceResponse + { + private RelayAuthentication _authentication; + private DateTime? _createdTimestamp; + private DateTime? _lastModifiedTimestamp; + private string _relayArn; + private string _relayId; + private string _relayName; + private string _serverName; + private int? _serverPort; + + /// + /// Gets and sets the property Authentication. + /// + /// The authentication attribute—contains the secret ARN where the customer relay server + /// credentials are stored. + /// + /// + public RelayAuthentication Authentication + { + get { return this._authentication; } + set { this._authentication = value; } + } + + // Check to see if Authentication property is set + internal bool IsSetAuthentication() + { + return this._authentication != null; + } + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the relay was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + /// + /// Gets and sets the property LastModifiedTimestamp. + /// + /// The timestamp of when relay was last updated. + /// + /// + public DateTime LastModifiedTimestamp + { + get { return this._lastModifiedTimestamp.GetValueOrDefault(); } + set { this._lastModifiedTimestamp = value; } + } + + // Check to see if LastModifiedTimestamp property is set + internal bool IsSetLastModifiedTimestamp() + { + return this._lastModifiedTimestamp.HasValue; + } + + /// + /// Gets and sets the property RelayArn. + /// + /// The Amazon Resource Name (ARN) of the relay. + /// + /// + public string RelayArn + { + get { return this._relayArn; } + set { this._relayArn = value; } + } + + // Check to see if RelayArn property is set + internal bool IsSetRelayArn() + { + return this._relayArn != null; + } + + /// + /// Gets and sets the property RelayId. + /// + /// The unique relay identifier. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RelayId + { + get { return this._relayId; } + set { this._relayId = value; } + } + + // Check to see if RelayId property is set + internal bool IsSetRelayId() + { + return this._relayId != null; + } + + /// + /// Gets and sets the property RelayName. + /// + /// The unique name of the relay. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RelayName + { + get { return this._relayName; } + set { this._relayName = value; } + } + + // Check to see if RelayName property is set + internal bool IsSetRelayName() + { + return this._relayName != null; + } + + /// + /// Gets and sets the property ServerName. + /// + /// The destination relay server address. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string ServerName + { + get { return this._serverName; } + set { this._serverName = value; } + } + + // Check to see if ServerName property is set + internal bool IsSetServerName() + { + return this._serverName != null; + } + + /// + /// Gets and sets the property ServerPort. + /// + /// The destination relay server port. + /// + /// + [AWSProperty(Min=1, Max=65535)] + public int ServerPort + { + get { return this._serverPort.GetValueOrDefault(); } + set { this._serverPort = value; } + } + + // Check to see if ServerPort property is set + internal bool IsSetServerPort() + { + return this._serverPort.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetRuleSetRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetRuleSetRequest.cs new file mode 100644 index 000000000000..c6f61ed916bb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetRuleSetRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetRuleSet operation. + /// Fetch attributes of a rule set. + /// + public partial class GetRuleSetRequest : AmazonMailManagerRequest + { + private string _ruleSetId; + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of an existing rule set to be retrieved. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetRuleSetResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetRuleSetResponse.cs new file mode 100644 index 000000000000..4b76544057f5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetRuleSetResponse.cs @@ -0,0 +1,159 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the GetRuleSet operation. + /// + public partial class GetRuleSetResponse : AmazonWebServiceResponse + { + private DateTime? _createdDate; + private DateTime? _lastModificationDate; + private List _rules = AWSConfigs.InitializeCollections ? new List() : null; + private string _ruleSetArn; + private string _ruleSetId; + private string _ruleSetName; + + /// + /// Gets and sets the property CreatedDate. + /// + /// The date of when then rule set was created. + /// + /// + [AWSProperty(Required=true)] + public DateTime CreatedDate + { + get { return this._createdDate.GetValueOrDefault(); } + set { this._createdDate = value; } + } + + // Check to see if CreatedDate property is set + internal bool IsSetCreatedDate() + { + return this._createdDate.HasValue; + } + + /// + /// Gets and sets the property LastModificationDate. + /// + /// The date of when the rule set was last modified. + /// + /// + [AWSProperty(Required=true)] + public DateTime LastModificationDate + { + get { return this._lastModificationDate.GetValueOrDefault(); } + set { this._lastModificationDate = value; } + } + + // Check to see if LastModificationDate property is set + internal bool IsSetLastModificationDate() + { + return this._lastModificationDate.HasValue; + } + + /// + /// Gets and sets the property Rules. + /// + /// The rules contained in the rule set. + /// + /// + [AWSProperty(Required=true, Min=0, Max=40)] + public List Rules + { + get { return this._rules; } + set { this._rules = value; } + } + + // Check to see if Rules property is set + internal bool IsSetRules() + { + return this._rules != null && (this._rules.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property RuleSetArn. + /// + /// The Amazon Resource Name (ARN) of the rule set resource. + /// + /// + [AWSProperty(Required=true)] + public string RuleSetArn + { + get { return this._ruleSetArn; } + set { this._ruleSetArn = value; } + } + + // Check to see if RuleSetArn property is set + internal bool IsSetRuleSetArn() + { + return this._ruleSetArn != null; + } + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of the rule set resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + /// + /// Gets and sets the property RuleSetName. + /// + /// A user-friendly name for the rule set resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetName + { + get { return this._ruleSetName; } + set { this._ruleSetName = value; } + } + + // Check to see if RuleSetName property is set + internal bool IsSetRuleSetName() + { + return this._ruleSetName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyRequest.cs b/sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyRequest.cs new file mode 100644 index 000000000000..ac1ffe436b47 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the GetTrafficPolicy operation. + /// Fetch attributes of a traffic policy resource. + /// + public partial class GetTrafficPolicyRequest : AmazonMailManagerRequest + { + private string _trafficPolicyId; + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyResponse.cs b/sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyResponse.cs new file mode 100644 index 000000000000..67ab8d62bde1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/GetTrafficPolicyResponse.cs @@ -0,0 +1,195 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the GetTrafficPolicy operation. + /// + public partial class GetTrafficPolicyResponse : AmazonWebServiceResponse + { + private DateTime? _createdTimestamp; + private AcceptAction _defaultAction; + private DateTime? _lastUpdatedTimestamp; + private int? _maxMessageSizeBytes; + private List _policyStatements = AWSConfigs.InitializeCollections ? new List() : null; + private string _trafficPolicyArn; + private string _trafficPolicyId; + private string _trafficPolicyName; + + /// + /// Gets and sets the property CreatedTimestamp. + /// + /// The timestamp of when the traffic policy was created. + /// + /// + public DateTime CreatedTimestamp + { + get { return this._createdTimestamp.GetValueOrDefault(); } + set { this._createdTimestamp = value; } + } + + // Check to see if CreatedTimestamp property is set + internal bool IsSetCreatedTimestamp() + { + return this._createdTimestamp.HasValue; + } + + /// + /// Gets and sets the property DefaultAction. + /// + /// The default action of the traffic policy. + /// + /// + public AcceptAction DefaultAction + { + get { return this._defaultAction; } + set { this._defaultAction = value; } + } + + // Check to see if DefaultAction property is set + internal bool IsSetDefaultAction() + { + return this._defaultAction != null; + } + + /// + /// Gets and sets the property LastUpdatedTimestamp. + /// + /// The timestamp of when the traffic policy was last updated. + /// + /// + public DateTime LastUpdatedTimestamp + { + get { return this._lastUpdatedTimestamp.GetValueOrDefault(); } + set { this._lastUpdatedTimestamp = value; } + } + + // Check to see if LastUpdatedTimestamp property is set + internal bool IsSetLastUpdatedTimestamp() + { + return this._lastUpdatedTimestamp.HasValue; + } + + /// + /// Gets and sets the property MaxMessageSizeBytes. + /// + /// The maximum message size in bytes of email which is allowed in by this traffic policy—anything + /// larger will be blocked. + /// + /// + [AWSProperty(Min=1)] + public int MaxMessageSizeBytes + { + get { return this._maxMessageSizeBytes.GetValueOrDefault(); } + set { this._maxMessageSizeBytes = value; } + } + + // Check to see if MaxMessageSizeBytes property is set + internal bool IsSetMaxMessageSizeBytes() + { + return this._maxMessageSizeBytes.HasValue; + } + + /// + /// Gets and sets the property PolicyStatements. + /// + /// The list of conditions which are in the traffic policy resource. + /// + /// + public List PolicyStatements + { + get { return this._policyStatements; } + set { this._policyStatements = value; } + } + + // Check to see if PolicyStatements property is set + internal bool IsSetPolicyStatements() + { + return this._policyStatements != null && (this._policyStatements.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property TrafficPolicyArn. + /// + /// The Amazon Resource Name (ARN) of the traffic policy resource. + /// + /// + public string TrafficPolicyArn + { + get { return this._trafficPolicyArn; } + set { this._trafficPolicyArn = value; } + } + + // Check to see if TrafficPolicyArn property is set + internal bool IsSetTrafficPolicyArn() + { + return this._trafficPolicyArn != null; + } + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + /// + /// Gets and sets the property TrafficPolicyName. + /// + /// A user-friendly name for the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=3, Max=63)] + public string TrafficPolicyName + { + get { return this._trafficPolicyName; } + set { this._trafficPolicyName = value; } + } + + // Check to see if TrafficPolicyName property is set + internal bool IsSetTrafficPolicyName() + { + return this._trafficPolicyName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressAnalysis.cs b/sdk/src/Services/MailManager/Generated/Model/IngressAnalysis.cs new file mode 100644 index 000000000000..591e41b14261 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressAnalysis.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The Add On ARN and its returned value that is evaluated in a policy statement's conditional + /// expression to either deny or block the incoming email. + /// + public partial class IngressAnalysis + { + private string _analyzer; + private string _resultField; + + /// + /// Gets and sets the property Analyzer. + /// + /// The Amazon Resource Name (ARN) of an Add On. + /// + /// + [AWSProperty(Required=true)] + public string Analyzer + { + get { return this._analyzer; } + set { this._analyzer = value; } + } + + // Check to see if Analyzer property is set + internal bool IsSetAnalyzer() + { + return this._analyzer != null; + } + + /// + /// Gets and sets the property ResultField. + /// + /// The returned value from an Add On. + /// + /// + [AWSProperty(Required=true, Min=1, Max=256)] + public string ResultField + { + get { return this._resultField; } + set { this._resultField = value; } + } + + // Check to see if ResultField property is set + internal bool IsSetResultField() + { + return this._resultField != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressBooleanExpression.cs b/sdk/src/Services/MailManager/Generated/Model/IngressBooleanExpression.cs new file mode 100644 index 000000000000..8a9c211fa16e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressBooleanExpression.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure for a boolean condition matching on the incoming mail. + /// + public partial class IngressBooleanExpression + { + private IngressBooleanToEvaluate _evaluate; + private IngressBooleanOperator _operator; + + /// + /// Gets and sets the property Evaluate. + /// + /// The operand on which to perform a boolean condition operation. + /// + /// + [AWSProperty(Required=true)] + public IngressBooleanToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for a boolean condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressBooleanOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressBooleanToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/IngressBooleanToEvaluate.cs new file mode 100644 index 000000000000..177967102f08 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressBooleanToEvaluate.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The union type representing the allowed types of operands for a boolean condition. + /// + public partial class IngressBooleanToEvaluate + { + private IngressAnalysis _analysis; + + /// + /// Gets and sets the property Analysis. + /// + /// The structure type for a boolean condition stating the Add On ARN and its returned + /// value. + /// + /// + public IngressAnalysis Analysis + { + get { return this._analysis; } + set { this._analysis = value; } + } + + // Check to see if Analysis property is set + internal bool IsSetAnalysis() + { + return this._analysis != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressIpToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/IngressIpToEvaluate.cs new file mode 100644 index 000000000000..8ec042f11553 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressIpToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure for an IP based condition matching on the incoming mail. + /// + public partial class IngressIpToEvaluate + { + private IngressIpv4Attribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// An enum type representing the allowed attribute types for an IP condition. + /// + /// + public IngressIpv4Attribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressIpv4Expression.cs b/sdk/src/Services/MailManager/Generated/Model/IngressIpv4Expression.cs new file mode 100644 index 000000000000..3fe8144a89da --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressIpv4Expression.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The union type representing the allowed types for the left hand side of an IP condition. + /// + public partial class IngressIpv4Expression + { + private IngressIpToEvaluate _evaluate; + private IngressIpOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Evaluate. + /// + /// The left hand side argument of an IP condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressIpToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for an IP condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressIpOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The right hand side argument of an IP condition expression. + /// + /// + [AWSProperty(Required=true)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressPoint.cs b/sdk/src/Services/MailManager/Generated/Model/IngressPoint.cs new file mode 100644 index 000000000000..50c139f13089 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressPoint.cs @@ -0,0 +1,139 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure of an ingress endpoint resource. + /// + public partial class IngressPoint + { + private string _aRecord; + private string _ingressPointId; + private string _ingressPointName; + private IngressPointStatus _status; + private IngressPointType _type; + + /// + /// Gets and sets the property ARecord. + /// + /// The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange + /// (MX) record with this value to route emails to Mail Manager. + /// + /// + public string ARecord + { + get { return this._aRecord; } + set { this._aRecord = value; } + } + + // Check to see if ARecord property is set + internal bool IsSetARecord() + { + return this._aRecord != null; + } + + /// + /// Gets and sets the property IngressPointId. + /// + /// The identifier of the ingress endpoint resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string IngressPointId + { + get { return this._ingressPointId; } + set { this._ingressPointId = value; } + } + + // Check to see if IngressPointId property is set + internal bool IsSetIngressPointId() + { + return this._ingressPointId != null; + } + + /// + /// Gets and sets the property IngressPointName. + /// + /// A user friendly name for the ingress endpoint resource. + /// + /// + [AWSProperty(Required=true, Min=3, Max=63)] + public string IngressPointName + { + get { return this._ingressPointName; } + set { this._ingressPointName = value; } + } + + // Check to see if IngressPointName property is set + internal bool IsSetIngressPointName() + { + return this._ingressPointName != null; + } + + /// + /// Gets and sets the property Status. + /// + /// The status of the ingress endpoint resource. + /// + /// + [AWSProperty(Required=true)] + public IngressPointStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + /// + /// Gets and sets the property Type. + /// + /// The type of ingress endpoint resource. + /// + /// + [AWSProperty(Required=true)] + public IngressPointType Type + { + get { return this._type; } + set { this._type = value; } + } + + // Check to see if Type property is set + internal bool IsSetType() + { + return this._type != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressPointAuthConfiguration.cs b/sdk/src/Services/MailManager/Generated/Model/IngressPointAuthConfiguration.cs new file mode 100644 index 000000000000..ad5e19c08974 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressPointAuthConfiguration.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The authentication configuration for the ingress endpoint resource. + /// + public partial class IngressPointAuthConfiguration + { + private IngressPointPasswordConfiguration _ingressPointPasswordConfiguration; + private string _secretArn; + + /// + /// Gets and sets the property IngressPointPasswordConfiguration. + /// + /// The ingress endpoint password configuration for the ingress endpoint resource. + /// + /// + public IngressPointPasswordConfiguration IngressPointPasswordConfiguration + { + get { return this._ingressPointPasswordConfiguration; } + set { this._ingressPointPasswordConfiguration = value; } + } + + // Check to see if IngressPointPasswordConfiguration property is set + internal bool IsSetIngressPointPasswordConfiguration() + { + return this._ingressPointPasswordConfiguration != null; + } + + /// + /// Gets and sets the property SecretArn. + /// + /// The ingress endpoint SecretsManager::Secret ARN configuration for the ingress endpoint + /// resource. + /// + /// + public string SecretArn + { + get { return this._secretArn; } + set { this._secretArn = value; } + } + + // Check to see if SecretArn property is set + internal bool IsSetSecretArn() + { + return this._secretArn != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressPointConfiguration.cs b/sdk/src/Services/MailManager/Generated/Model/IngressPointConfiguration.cs new file mode 100644 index 000000000000..e389e2498ce5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressPointConfiguration.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The configuration of the ingress endpoint resource. + /// + public partial class IngressPointConfiguration + { + private string _secretArn; + private string _smtpPassword; + + /// + /// Gets and sets the property SecretArn. + /// + /// The SecretsManager::Secret ARN of the ingress endpoint resource. + /// + /// + public string SecretArn + { + get { return this._secretArn; } + set { this._secretArn = value; } + } + + // Check to see if SecretArn property is set + internal bool IsSetSecretArn() + { + return this._secretArn != null; + } + + /// + /// Gets and sets the property SmtpPassword. + /// + /// The password of the ingress endpoint resource. + /// + /// + [AWSProperty(Sensitive=true, Min=8, Max=64)] + public string SmtpPassword + { + get { return this._smtpPassword; } + set { this._smtpPassword = value; } + } + + // Check to see if SmtpPassword property is set + internal bool IsSetSmtpPassword() + { + return this._smtpPassword != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressPointPasswordConfiguration.cs b/sdk/src/Services/MailManager/Generated/Model/IngressPointPasswordConfiguration.cs new file mode 100644 index 000000000000..edb5b317a769 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressPointPasswordConfiguration.cs @@ -0,0 +1,96 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The password configuration of the ingress endpoint resource. + /// + public partial class IngressPointPasswordConfiguration + { + private DateTime? _previousSmtpPasswordExpiryTimestamp; + private string _previousSmtpPasswordVersion; + private string _smtpPasswordVersion; + + /// + /// Gets and sets the property PreviousSmtpPasswordExpiryTimestamp. + /// + /// The previous password expiry timestamp of the ingress endpoint resource. + /// + /// + public DateTime PreviousSmtpPasswordExpiryTimestamp + { + get { return this._previousSmtpPasswordExpiryTimestamp.GetValueOrDefault(); } + set { this._previousSmtpPasswordExpiryTimestamp = value; } + } + + // Check to see if PreviousSmtpPasswordExpiryTimestamp property is set + internal bool IsSetPreviousSmtpPasswordExpiryTimestamp() + { + return this._previousSmtpPasswordExpiryTimestamp.HasValue; + } + + /// + /// Gets and sets the property PreviousSmtpPasswordVersion. + /// + /// The previous password version of the ingress endpoint resource. + /// + /// + public string PreviousSmtpPasswordVersion + { + get { return this._previousSmtpPasswordVersion; } + set { this._previousSmtpPasswordVersion = value; } + } + + // Check to see if PreviousSmtpPasswordVersion property is set + internal bool IsSetPreviousSmtpPasswordVersion() + { + return this._previousSmtpPasswordVersion != null; + } + + /// + /// Gets and sets the property SmtpPasswordVersion. + /// + /// The current password expiry timestamp of the ingress endpoint resource. + /// + /// + public string SmtpPasswordVersion + { + get { return this._smtpPasswordVersion; } + set { this._smtpPasswordVersion = value; } + } + + // Check to see if SmtpPasswordVersion property is set + internal bool IsSetSmtpPasswordVersion() + { + return this._smtpPasswordVersion != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressStringExpression.cs b/sdk/src/Services/MailManager/Generated/Model/IngressStringExpression.cs new file mode 100644 index 000000000000..5d0f9c269b19 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressStringExpression.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure for a string based condition matching on the incoming mail. + /// + public partial class IngressStringExpression + { + private IngressStringToEvaluate _evaluate; + private IngressStringOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Evaluate. + /// + /// The left hand side argument of a string condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressStringToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for a string condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressStringOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The right hand side argument of a string condition expression. + /// + /// + [AWSProperty(Required=true)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressStringToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/IngressStringToEvaluate.cs new file mode 100644 index 000000000000..8a72a4b24b7c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressStringToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The union type representing the allowed types for the left hand side of a string condition. + /// + public partial class IngressStringToEvaluate + { + private IngressStringEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The enum type representing the allowed attribute types for a string condition. + /// + /// + public IngressStringEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolExpression.cs b/sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolExpression.cs new file mode 100644 index 000000000000..57368f69aaed --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolExpression.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure for a TLS related condition matching on the incoming mail. + /// + public partial class IngressTlsProtocolExpression + { + private IngressTlsProtocolToEvaluate _evaluate; + private IngressTlsProtocolOperator _operator; + private IngressTlsProtocolAttribute _value; + + /// + /// Gets and sets the property Evaluate. + /// + /// The left hand side argument of a TLS condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressTlsProtocolToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for a TLS condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressTlsProtocolOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Value. + /// + /// The right hand side argument of a TLS condition expression. + /// + /// + [AWSProperty(Required=true)] + public IngressTlsProtocolAttribute Value + { + get { return this._value; } + set { this._value = value; } + } + + // Check to see if Value property is set + internal bool IsSetValue() + { + return this._value != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolToEvaluate.cs new file mode 100644 index 000000000000..b94d49d7220c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/IngressTlsProtocolToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The union type representing the allowed types for the left hand side of a TLS condition. + /// + public partial class IngressTlsProtocolToEvaluate + { + private IngressTlsAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The enum type representing the allowed attribute types for the TLS condition. + /// + /// + public IngressTlsAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs new file mode 100644 index 000000000000..700e33becc58 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs @@ -0,0 +1,86 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for AccessDeniedException Object + /// + public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static AccessDeniedExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionMarshaller.cs new file mode 100644 index 000000000000..0b2c78901d8b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// AddHeaderAction Marshaller + /// + public class AddHeaderActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(AddHeaderAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetHeaderName()) + { + context.Writer.WritePropertyName("HeaderName"); + context.Writer.Write(requestObject.HeaderName); + } + + if(requestObject.IsSetHeaderValue()) + { + context.Writer.WritePropertyName("HeaderValue"); + context.Writer.Write(requestObject.HeaderValue); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static AddHeaderActionMarshaller Instance = new AddHeaderActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionUnmarshaller.cs new file mode 100644 index 000000000000..8a69af6fcd86 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddHeaderActionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for AddHeaderAction Object + /// + public class AddHeaderActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + AddHeaderAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public AddHeaderAction Unmarshall(JsonUnmarshallerContext context) + { + AddHeaderAction unmarshalledObject = new AddHeaderAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("HeaderName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.HeaderName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("HeaderValue", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.HeaderValue = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static AddHeaderActionUnmarshaller _instance = new AddHeaderActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static AddHeaderActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonInstanceUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonInstanceUnmarshaller.cs new file mode 100644 index 000000000000..e566db269c6a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonInstanceUnmarshaller.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for AddonInstance Object + /// + public class AddonInstanceUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + AddonInstance IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public AddonInstance Unmarshall(JsonUnmarshallerContext context) + { + AddonInstance unmarshalledObject = new AddonInstance(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonInstanceArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonInstanceArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonInstanceId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonInstanceId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonSubscriptionId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonSubscriptionId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static AddonInstanceUnmarshaller _instance = new AddonInstanceUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static AddonInstanceUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonSubscriptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonSubscriptionUnmarshaller.cs new file mode 100644 index 000000000000..217a0e1e9e6c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AddonSubscriptionUnmarshaller.cs @@ -0,0 +1,109 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for AddonSubscription Object + /// + public class AddonSubscriptionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + AddonSubscription IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public AddonSubscription Unmarshall(JsonUnmarshallerContext context) + { + AddonSubscription unmarshalledObject = new AddonSubscription(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonSubscriptionArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonSubscriptionArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonSubscriptionId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.AddonSubscriptionId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static AddonSubscriptionUnmarshaller _instance = new AddonSubscriptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static AddonSubscriptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisMarshaller.cs new file mode 100644 index 000000000000..f527e7bfe048 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Analysis Marshaller + /// + public class AnalysisMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(Analysis requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAnalyzer()) + { + context.Writer.WritePropertyName("Analyzer"); + context.Writer.Write(requestObject.Analyzer); + } + + if(requestObject.IsSetResultField()) + { + context.Writer.WritePropertyName("ResultField"); + context.Writer.Write(requestObject.ResultField); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static AnalysisMarshaller Instance = new AnalysisMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisUnmarshaller.cs new file mode 100644 index 000000000000..6ebfea75f7a0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/AnalysisUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Analysis Object + /// + public class AnalysisUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Analysis IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public Analysis Unmarshall(JsonUnmarshallerContext context) + { + Analysis unmarshalledObject = new Analysis(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Analyzer", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Analyzer = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ResultField", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ResultField = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static AnalysisUnmarshaller _instance = new AnalysisUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static AnalysisUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionMarshaller.cs new file mode 100644 index 000000000000..bd941dc3f3d6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveAction Marshaller + /// + public class ArchiveActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetActionFailurePolicy()) + { + context.Writer.WritePropertyName("ActionFailurePolicy"); + context.Writer.Write(requestObject.ActionFailurePolicy); + } + + if(requestObject.IsSetTargetArchive()) + { + context.Writer.WritePropertyName("TargetArchive"); + context.Writer.Write(requestObject.TargetArchive); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveActionMarshaller Instance = new ArchiveActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionUnmarshaller.cs new file mode 100644 index 000000000000..89df843e9ec2 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveActionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveAction Object + /// + public class ArchiveActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveAction Unmarshall(JsonUnmarshallerContext context) + { + ArchiveAction unmarshalledObject = new ArchiveAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ActionFailurePolicy", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ActionFailurePolicy = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TargetArchive", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.TargetArchive = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveActionUnmarshaller _instance = new ArchiveActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionMarshaller.cs new file mode 100644 index 000000000000..afe468cc078c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionMarshaller.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveBooleanExpression Marshaller + /// + public class ArchiveBooleanExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveBooleanExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveBooleanToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveBooleanExpressionMarshaller Instance = new ArchiveBooleanExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionUnmarshaller.cs new file mode 100644 index 000000000000..bbe19afc4516 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanExpressionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveBooleanExpression Object + /// + public class ArchiveBooleanExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveBooleanExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveBooleanExpression Unmarshall(JsonUnmarshallerContext context) + { + ArchiveBooleanExpression unmarshalledObject = new ArchiveBooleanExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = ArchiveBooleanToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveBooleanExpressionUnmarshaller _instance = new ArchiveBooleanExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveBooleanExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateMarshaller.cs new file mode 100644 index 000000000000..53822c17378c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveBooleanToEvaluate Marshaller + /// + public class ArchiveBooleanToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveBooleanToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveBooleanToEvaluateMarshaller Instance = new ArchiveBooleanToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..7273c1daac36 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveBooleanToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveBooleanToEvaluate Object + /// + public class ArchiveBooleanToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveBooleanToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveBooleanToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + ArchiveBooleanToEvaluate unmarshalledObject = new ArchiveBooleanToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveBooleanToEvaluateUnmarshaller _instance = new ArchiveBooleanToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveBooleanToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionMarshaller.cs new file mode 100644 index 000000000000..56c9d0ad0c21 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionMarshaller.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveFilterCondition Marshaller + /// + public class ArchiveFilterConditionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveFilterCondition requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetBooleanExpression()) + { + context.Writer.WritePropertyName("BooleanExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveBooleanExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.BooleanExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetStringExpression()) + { + context.Writer.WritePropertyName("StringExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveStringExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.StringExpression, context); + + context.Writer.WriteObjectEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveFilterConditionMarshaller Instance = new ArchiveFilterConditionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionUnmarshaller.cs new file mode 100644 index 000000000000..ce76a0018b3b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFilterConditionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveFilterCondition Object + /// + public class ArchiveFilterConditionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveFilterCondition IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveFilterCondition Unmarshall(JsonUnmarshallerContext context) + { + ArchiveFilterCondition unmarshalledObject = new ArchiveFilterCondition(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("BooleanExpression", targetDepth)) + { + var unmarshaller = ArchiveBooleanExpressionUnmarshaller.Instance; + unmarshalledObject.BooleanExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("StringExpression", targetDepth)) + { + var unmarshaller = ArchiveStringExpressionUnmarshaller.Instance; + unmarshalledObject.StringExpression = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveFilterConditionUnmarshaller _instance = new ArchiveFilterConditionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveFilterConditionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersMarshaller.cs new file mode 100644 index 000000000000..3922f0dec366 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersMarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveFilters Marshaller + /// + public class ArchiveFiltersMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveFilters requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetInclude()) + { + context.Writer.WritePropertyName("Include"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectIncludeListValue in requestObject.Include) + { + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveFilterConditionMarshaller.Instance; + marshaller.Marshall(requestObjectIncludeListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(requestObject.IsSetUnless()) + { + context.Writer.WritePropertyName("Unless"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectUnlessListValue in requestObject.Unless) + { + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveFilterConditionMarshaller.Instance; + marshaller.Marshall(requestObjectUnlessListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveFiltersMarshaller Instance = new ArchiveFiltersMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersUnmarshaller.cs new file mode 100644 index 000000000000..de7f59539cc6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveFiltersUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveFilters Object + /// + public class ArchiveFiltersUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveFilters IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveFilters Unmarshall(JsonUnmarshallerContext context) + { + ArchiveFilters unmarshalledObject = new ArchiveFilters(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Include", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(ArchiveFilterConditionUnmarshaller.Instance); + unmarshalledObject.Include = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Unless", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(ArchiveFilterConditionUnmarshaller.Instance); + unmarshalledObject.Unless = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveFiltersUnmarshaller _instance = new ArchiveFiltersUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveFiltersUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionMarshaller.cs new file mode 100644 index 000000000000..4fc2138a1142 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveRetention Marshaller + /// + public class ArchiveRetentionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveRetention requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetRetentionPeriod()) + { + context.Writer.WritePropertyName("RetentionPeriod"); + context.Writer.Write(requestObject.RetentionPeriod); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveRetentionMarshaller Instance = new ArchiveRetentionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionUnmarshaller.cs new file mode 100644 index 000000000000..04eaa5e5eed9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveRetentionUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveRetention Object + /// + public class ArchiveRetentionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveRetention IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveRetention Unmarshall(JsonUnmarshallerContext context) + { + ArchiveRetention unmarshalledObject = new ArchiveRetention(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("RetentionPeriod", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RetentionPeriod = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveRetentionUnmarshaller _instance = new ArchiveRetentionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveRetentionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionMarshaller.cs new file mode 100644 index 000000000000..9842edad9c64 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveStringExpression Marshaller + /// + public class ArchiveStringExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveStringExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveStringToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveStringExpressionMarshaller Instance = new ArchiveStringExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionUnmarshaller.cs new file mode 100644 index 000000000000..a346e43bd168 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveStringExpression Object + /// + public class ArchiveStringExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveStringExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveStringExpression Unmarshall(JsonUnmarshallerContext context) + { + ArchiveStringExpression unmarshalledObject = new ArchiveStringExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = ArchiveStringToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveStringExpressionUnmarshaller _instance = new ArchiveStringExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveStringExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateMarshaller.cs new file mode 100644 index 000000000000..054ef60e3d57 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ArchiveStringToEvaluate Marshaller + /// + public class ArchiveStringToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ArchiveStringToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ArchiveStringToEvaluateMarshaller Instance = new ArchiveStringToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..65c49fc8b609 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveStringToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ArchiveStringToEvaluate Object + /// + public class ArchiveStringToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ArchiveStringToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ArchiveStringToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + ArchiveStringToEvaluate unmarshalledObject = new ArchiveStringToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveStringToEvaluateUnmarshaller _instance = new ArchiveStringToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveStringToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveUnmarshaller.cs new file mode 100644 index 000000000000..ef2a3049e6fb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ArchiveUnmarshaller.cs @@ -0,0 +1,109 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Archive Object + /// + public class ArchiveUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Archive IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public Archive Unmarshall(JsonUnmarshallerContext context) + { + Archive unmarshalledObject = new Archive(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ArchiveId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ArchiveId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ArchiveName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ArchiveName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ArchiveState", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ArchiveState = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ArchiveUnmarshaller _instance = new ArchiveUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ArchiveUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs new file mode 100644 index 000000000000..b817be93ebab --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs @@ -0,0 +1,86 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ConflictException Object + /// + public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ConflictException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ConflictExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceRequestMarshaller.cs new file mode 100644 index 000000000000..4119c9c44108 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceRequestMarshaller.cs @@ -0,0 +1,132 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateAddonInstance Request Marshaller + /// + public class CreateAddonInstanceRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateAddonInstanceRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateAddonInstanceRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateAddonInstance"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAddonSubscriptionId()) + { + context.Writer.WritePropertyName("AddonSubscriptionId"); + context.Writer.Write(publicRequest.AddonSubscriptionId); + } + + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateAddonInstanceRequestMarshaller _instance = new CreateAddonInstanceRequestMarshaller(); + + internal static CreateAddonInstanceRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateAddonInstanceRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceResponseUnmarshaller.cs new file mode 100644 index 000000000000..63140970fabf --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonInstanceResponseUnmarshaller.cs @@ -0,0 +1,123 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateAddonInstance operation + /// + public class CreateAddonInstanceResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateAddonInstanceResponse response = new CreateAddonInstanceResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonInstanceId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonInstanceId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateAddonInstanceResponseUnmarshaller _instance = new CreateAddonInstanceResponseUnmarshaller(); + + internal static CreateAddonInstanceResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateAddonInstanceResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionRequestMarshaller.cs new file mode 100644 index 000000000000..42a2cd56e5f1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionRequestMarshaller.cs @@ -0,0 +1,132 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateAddonSubscription Request Marshaller + /// + public class CreateAddonSubscriptionRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateAddonSubscriptionRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateAddonSubscriptionRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateAddonSubscription"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAddonName()) + { + context.Writer.WritePropertyName("AddonName"); + context.Writer.Write(publicRequest.AddonName); + } + + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateAddonSubscriptionRequestMarshaller _instance = new CreateAddonSubscriptionRequestMarshaller(); + + internal static CreateAddonSubscriptionRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateAddonSubscriptionRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionResponseUnmarshaller.cs new file mode 100644 index 000000000000..fa2b27cfb391 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateAddonSubscriptionResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateAddonSubscription operation + /// + public class CreateAddonSubscriptionResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateAddonSubscriptionResponse response = new CreateAddonSubscriptionResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonSubscriptionId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonSubscriptionId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateAddonSubscriptionResponseUnmarshaller _instance = new CreateAddonSubscriptionResponseUnmarshaller(); + + internal static CreateAddonSubscriptionResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateAddonSubscriptionResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveRequestMarshaller.cs new file mode 100644 index 000000000000..cd7098806288 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveRequestMarshaller.cs @@ -0,0 +1,149 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateArchive Request Marshaller + /// + public class CreateArchiveRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateArchiveRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateArchiveRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateArchive"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveName()) + { + context.Writer.WritePropertyName("ArchiveName"); + context.Writer.Write(publicRequest.ArchiveName); + } + + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetKmsKeyArn()) + { + context.Writer.WritePropertyName("KmsKeyArn"); + context.Writer.Write(publicRequest.KmsKeyArn); + } + + if(publicRequest.IsSetRetention()) + { + context.Writer.WritePropertyName("Retention"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveRetentionMarshaller.Instance; + marshaller.Marshall(publicRequest.Retention, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateArchiveRequestMarshaller _instance = new CreateArchiveRequestMarshaller(); + + internal static CreateArchiveRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateArchiveRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveResponseUnmarshaller.cs new file mode 100644 index 000000000000..175bab906ba5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateArchiveResponseUnmarshaller.cs @@ -0,0 +1,127 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateArchive operation + /// + public class CreateArchiveResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateArchiveResponse response = new CreateArchiveResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ArchiveId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateArchiveResponseUnmarshaller _instance = new CreateArchiveResponseUnmarshaller(); + + internal static CreateArchiveResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateArchiveResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointRequestMarshaller.cs new file mode 100644 index 000000000000..9426ba025fca --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointRequestMarshaller.cs @@ -0,0 +1,161 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateIngressPoint Request Marshaller + /// + public class CreateIngressPointRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateIngressPointRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateIngressPointRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateIngressPoint"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetIngressPointConfiguration()) + { + context.Writer.WritePropertyName("IngressPointConfiguration"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressPointConfigurationMarshaller.Instance; + marshaller.Marshall(publicRequest.IngressPointConfiguration, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetIngressPointName()) + { + context.Writer.WritePropertyName("IngressPointName"); + context.Writer.Write(publicRequest.IngressPointName); + } + + if(publicRequest.IsSetRuleSetId()) + { + context.Writer.WritePropertyName("RuleSetId"); + context.Writer.Write(publicRequest.RuleSetId); + } + + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(publicRequest.IsSetTrafficPolicyId()) + { + context.Writer.WritePropertyName("TrafficPolicyId"); + context.Writer.Write(publicRequest.TrafficPolicyId); + } + + if(publicRequest.IsSetType()) + { + context.Writer.WritePropertyName("Type"); + context.Writer.Write(publicRequest.Type); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateIngressPointRequestMarshaller _instance = new CreateIngressPointRequestMarshaller(); + + internal static CreateIngressPointRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateIngressPointRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointResponseUnmarshaller.cs new file mode 100644 index 000000000000..bac311e85a65 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateIngressPointResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateIngressPoint operation + /// + public class CreateIngressPointResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateIngressPointResponse response = new CreateIngressPointResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("IngressPointId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.IngressPointId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateIngressPointResponseUnmarshaller _instance = new CreateIngressPointResponseUnmarshaller(); + + internal static CreateIngressPointResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateIngressPointResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayRequestMarshaller.cs new file mode 100644 index 000000000000..af8dbf9eaa3f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayRequestMarshaller.cs @@ -0,0 +1,155 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateRelay Request Marshaller + /// + public class CreateRelayRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateRelayRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateRelayRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateRelay"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAuthentication()) + { + context.Writer.WritePropertyName("Authentication"); + context.Writer.WriteObjectStart(); + + var marshaller = RelayAuthenticationMarshaller.Instance; + marshaller.Marshall(publicRequest.Authentication, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetRelayName()) + { + context.Writer.WritePropertyName("RelayName"); + context.Writer.Write(publicRequest.RelayName); + } + + if(publicRequest.IsSetServerName()) + { + context.Writer.WritePropertyName("ServerName"); + context.Writer.Write(publicRequest.ServerName); + } + + if(publicRequest.IsSetServerPort()) + { + context.Writer.WritePropertyName("ServerPort"); + context.Writer.Write(publicRequest.ServerPort); + } + + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateRelayRequestMarshaller _instance = new CreateRelayRequestMarshaller(); + + internal static CreateRelayRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateRelayRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayResponseUnmarshaller.cs new file mode 100644 index 000000000000..c6b9c505f0de --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRelayResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateRelay operation + /// + public class CreateRelayResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateRelayResponse response = new CreateRelayResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("RelayId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RelayId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateRelayResponseUnmarshaller _instance = new CreateRelayResponseUnmarshaller(); + + internal static CreateRelayResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateRelayResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetRequestMarshaller.cs new file mode 100644 index 000000000000..3a3e1fb399ed --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetRequestMarshaller.cs @@ -0,0 +1,148 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateRuleSet Request Marshaller + /// + public class CreateRuleSetRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateRuleSetRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateRuleSetRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateRuleSet"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetRules()) + { + context.Writer.WritePropertyName("Rules"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestRulesListValue in publicRequest.Rules) + { + context.Writer.WriteObjectStart(); + + var marshaller = RuleMarshaller.Instance; + marshaller.Marshall(publicRequestRulesListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(publicRequest.IsSetRuleSetName()) + { + context.Writer.WritePropertyName("RuleSetName"); + context.Writer.Write(publicRequest.RuleSetName); + } + + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateRuleSetRequestMarshaller _instance = new CreateRuleSetRequestMarshaller(); + + internal static CreateRuleSetRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateRuleSetRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetResponseUnmarshaller.cs new file mode 100644 index 000000000000..11f4e298d7c9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateRuleSetResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateRuleSet operation + /// + public class CreateRuleSetResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateRuleSetResponse response = new CreateRuleSetResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("RuleSetId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RuleSetId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateRuleSetResponseUnmarshaller _instance = new CreateRuleSetResponseUnmarshaller(); + + internal static CreateRuleSetResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateRuleSetResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyRequestMarshaller.cs new file mode 100644 index 000000000000..adc766fb15a0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyRequestMarshaller.cs @@ -0,0 +1,160 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// CreateTrafficPolicy Request Marshaller + /// + public class CreateTrafficPolicyRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateTrafficPolicyRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateTrafficPolicyRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.CreateTrafficPolicy"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetClientToken()) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(publicRequest.ClientToken); + } + + else if(!(publicRequest.IsSetClientToken())) + { + context.Writer.WritePropertyName("ClientToken"); + context.Writer.Write(Guid.NewGuid().ToString()); + } + if(publicRequest.IsSetDefaultAction()) + { + context.Writer.WritePropertyName("DefaultAction"); + context.Writer.Write(publicRequest.DefaultAction); + } + + if(publicRequest.IsSetMaxMessageSizeBytes()) + { + context.Writer.WritePropertyName("MaxMessageSizeBytes"); + context.Writer.Write(publicRequest.MaxMessageSizeBytes); + } + + if(publicRequest.IsSetPolicyStatements()) + { + context.Writer.WritePropertyName("PolicyStatements"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestPolicyStatementsListValue in publicRequest.PolicyStatements) + { + context.Writer.WriteObjectStart(); + + var marshaller = PolicyStatementMarshaller.Instance; + marshaller.Marshall(publicRequestPolicyStatementsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(publicRequest.IsSetTrafficPolicyName()) + { + context.Writer.WritePropertyName("TrafficPolicyName"); + context.Writer.Write(publicRequest.TrafficPolicyName); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateTrafficPolicyRequestMarshaller _instance = new CreateTrafficPolicyRequestMarshaller(); + + internal static CreateTrafficPolicyRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateTrafficPolicyRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyResponseUnmarshaller.cs new file mode 100644 index 000000000000..365c7673ab95 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/CreateTrafficPolicyResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateTrafficPolicy operation + /// + public class CreateTrafficPolicyResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateTrafficPolicyResponse response = new CreateTrafficPolicyResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("TrafficPolicyId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.TrafficPolicyId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateTrafficPolicyResponseUnmarshaller _instance = new CreateTrafficPolicyResponseUnmarshaller(); + + internal static CreateTrafficPolicyResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateTrafficPolicyResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceRequestMarshaller.cs new file mode 100644 index 000000000000..e954e213bd35 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteAddonInstance Request Marshaller + /// + public class DeleteAddonInstanceRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteAddonInstanceRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteAddonInstanceRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteAddonInstance"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAddonInstanceId()) + { + context.Writer.WritePropertyName("AddonInstanceId"); + context.Writer.Write(publicRequest.AddonInstanceId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteAddonInstanceRequestMarshaller _instance = new DeleteAddonInstanceRequestMarshaller(); + + internal static DeleteAddonInstanceRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteAddonInstanceRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceResponseUnmarshaller.cs new file mode 100644 index 000000000000..4035043019ed --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonInstanceResponseUnmarshaller.cs @@ -0,0 +1,104 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteAddonInstance operation + /// + public class DeleteAddonInstanceResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteAddonInstanceResponse response = new DeleteAddonInstanceResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteAddonInstanceResponseUnmarshaller _instance = new DeleteAddonInstanceResponseUnmarshaller(); + + internal static DeleteAddonInstanceResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteAddonInstanceResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionRequestMarshaller.cs new file mode 100644 index 000000000000..b5d159e1ac4a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteAddonSubscription Request Marshaller + /// + public class DeleteAddonSubscriptionRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteAddonSubscriptionRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteAddonSubscriptionRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteAddonSubscription"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAddonSubscriptionId()) + { + context.Writer.WritePropertyName("AddonSubscriptionId"); + context.Writer.Write(publicRequest.AddonSubscriptionId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteAddonSubscriptionRequestMarshaller _instance = new DeleteAddonSubscriptionRequestMarshaller(); + + internal static DeleteAddonSubscriptionRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteAddonSubscriptionRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionResponseUnmarshaller.cs new file mode 100644 index 000000000000..23ee55a6203c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteAddonSubscriptionResponseUnmarshaller.cs @@ -0,0 +1,104 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteAddonSubscription operation + /// + public class DeleteAddonSubscriptionResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteAddonSubscriptionResponse response = new DeleteAddonSubscriptionResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteAddonSubscriptionResponseUnmarshaller _instance = new DeleteAddonSubscriptionResponseUnmarshaller(); + + internal static DeleteAddonSubscriptionResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteAddonSubscriptionResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveRequestMarshaller.cs new file mode 100644 index 000000000000..32a51003599a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteArchive Request Marshaller + /// + public class DeleteArchiveRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteArchiveRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteArchiveRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteArchive"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteArchiveRequestMarshaller _instance = new DeleteArchiveRequestMarshaller(); + + internal static DeleteArchiveRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteArchiveRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveResponseUnmarshaller.cs new file mode 100644 index 000000000000..55c589d20386 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteArchiveResponseUnmarshaller.cs @@ -0,0 +1,112 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteArchive operation + /// + public class DeleteArchiveResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteArchiveResponse response = new DeleteArchiveResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteArchiveResponseUnmarshaller _instance = new DeleteArchiveResponseUnmarshaller(); + + internal static DeleteArchiveResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteArchiveResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointRequestMarshaller.cs new file mode 100644 index 000000000000..0aca286d0d69 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteIngressPoint Request Marshaller + /// + public class DeleteIngressPointRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteIngressPointRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteIngressPointRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteIngressPoint"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetIngressPointId()) + { + context.Writer.WritePropertyName("IngressPointId"); + context.Writer.Write(publicRequest.IngressPointId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteIngressPointRequestMarshaller _instance = new DeleteIngressPointRequestMarshaller(); + + internal static DeleteIngressPointRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteIngressPointRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointResponseUnmarshaller.cs new file mode 100644 index 000000000000..c5484cd21360 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteIngressPointResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteIngressPoint operation + /// + public class DeleteIngressPointResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteIngressPointResponse response = new DeleteIngressPointResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteIngressPointResponseUnmarshaller _instance = new DeleteIngressPointResponseUnmarshaller(); + + internal static DeleteIngressPointResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteIngressPointResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayRequestMarshaller.cs new file mode 100644 index 000000000000..5c593aa8102e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteRelay Request Marshaller + /// + public class DeleteRelayRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteRelayRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteRelayRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteRelay"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetRelayId()) + { + context.Writer.WritePropertyName("RelayId"); + context.Writer.Write(publicRequest.RelayId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteRelayRequestMarshaller _instance = new DeleteRelayRequestMarshaller(); + + internal static DeleteRelayRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteRelayRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayResponseUnmarshaller.cs new file mode 100644 index 000000000000..e03e76360bfa --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRelayResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteRelay operation + /// + public class DeleteRelayResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteRelayResponse response = new DeleteRelayResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteRelayResponseUnmarshaller _instance = new DeleteRelayResponseUnmarshaller(); + + internal static DeleteRelayResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteRelayResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetRequestMarshaller.cs new file mode 100644 index 000000000000..b719f6bc511f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteRuleSet Request Marshaller + /// + public class DeleteRuleSetRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteRuleSetRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteRuleSetRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteRuleSet"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetRuleSetId()) + { + context.Writer.WritePropertyName("RuleSetId"); + context.Writer.Write(publicRequest.RuleSetId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteRuleSetRequestMarshaller _instance = new DeleteRuleSetRequestMarshaller(); + + internal static DeleteRuleSetRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteRuleSetRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetResponseUnmarshaller.cs new file mode 100644 index 000000000000..9212f5088db5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteRuleSetResponseUnmarshaller.cs @@ -0,0 +1,104 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteRuleSet operation + /// + public class DeleteRuleSetResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteRuleSetResponse response = new DeleteRuleSetResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteRuleSetResponseUnmarshaller _instance = new DeleteRuleSetResponseUnmarshaller(); + + internal static DeleteRuleSetResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteRuleSetResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyRequestMarshaller.cs new file mode 100644 index 000000000000..8417a672d7c5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeleteTrafficPolicy Request Marshaller + /// + public class DeleteTrafficPolicyRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteTrafficPolicyRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteTrafficPolicyRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.DeleteTrafficPolicy"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetTrafficPolicyId()) + { + context.Writer.WritePropertyName("TrafficPolicyId"); + context.Writer.Write(publicRequest.TrafficPolicyId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static DeleteTrafficPolicyRequestMarshaller _instance = new DeleteTrafficPolicyRequestMarshaller(); + + internal static DeleteTrafficPolicyRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteTrafficPolicyRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyResponseUnmarshaller.cs new file mode 100644 index 000000000000..f9624e3348c0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeleteTrafficPolicyResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteTrafficPolicy operation + /// + public class DeleteTrafficPolicyResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteTrafficPolicyResponse response = new DeleteTrafficPolicyResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteTrafficPolicyResponseUnmarshaller _instance = new DeleteTrafficPolicyResponseUnmarshaller(); + + internal static DeleteTrafficPolicyResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteTrafficPolicyResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionMarshaller.cs new file mode 100644 index 000000000000..ab97f24f9ee8 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionMarshaller.cs @@ -0,0 +1,77 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DeliverToMailboxAction Marshaller + /// + public class DeliverToMailboxActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(DeliverToMailboxAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetActionFailurePolicy()) + { + context.Writer.WritePropertyName("ActionFailurePolicy"); + context.Writer.Write(requestObject.ActionFailurePolicy); + } + + if(requestObject.IsSetMailboxArn()) + { + context.Writer.WritePropertyName("MailboxArn"); + context.Writer.Write(requestObject.MailboxArn); + } + + if(requestObject.IsSetRoleArn()) + { + context.Writer.WritePropertyName("RoleArn"); + context.Writer.Write(requestObject.RoleArn); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static DeliverToMailboxActionMarshaller Instance = new DeliverToMailboxActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionUnmarshaller.cs new file mode 100644 index 000000000000..dc2b1f740341 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DeliverToMailboxActionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeliverToMailboxAction Object + /// + public class DeliverToMailboxActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + DeliverToMailboxAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public DeliverToMailboxAction Unmarshall(JsonUnmarshallerContext context) + { + DeliverToMailboxAction unmarshalledObject = new DeliverToMailboxAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ActionFailurePolicy", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ActionFailurePolicy = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MailboxArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.MailboxArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RoleArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static DeliverToMailboxActionUnmarshaller _instance = new DeliverToMailboxActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static DeliverToMailboxActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionMarshaller.cs new file mode 100644 index 000000000000..43aff17dc245 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionMarshaller.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// DropAction Marshaller + /// + public class DropActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(DropAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + } + + /// + /// Singleton Marshaller. + /// + public readonly static DropActionMarshaller Instance = new DropActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionUnmarshaller.cs new file mode 100644 index 000000000000..d1b307754005 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/DropActionUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DropAction Object + /// + public class DropActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + DropAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public DropAction Unmarshall(JsonUnmarshallerContext context) + { + DropAction unmarshalledObject = new DropAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + return unmarshalledObject; + } + + + private static DropActionUnmarshaller _instance = new DropActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static DropActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationMarshaller.cs new file mode 100644 index 000000000000..f6961a66e78f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationMarshaller.cs @@ -0,0 +1,70 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ExportDestinationConfiguration Marshaller + /// + public class ExportDestinationConfigurationMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ExportDestinationConfiguration requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetS3()) + { + context.Writer.WritePropertyName("S3"); + context.Writer.WriteObjectStart(); + + var marshaller = S3ExportDestinationConfigurationMarshaller.Instance; + marshaller.Marshall(requestObject.S3, context); + + context.Writer.WriteObjectEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ExportDestinationConfigurationMarshaller Instance = new ExportDestinationConfigurationMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationUnmarshaller.cs new file mode 100644 index 000000000000..8a1224d14055 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportDestinationConfigurationUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ExportDestinationConfiguration Object + /// + public class ExportDestinationConfigurationUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ExportDestinationConfiguration IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ExportDestinationConfiguration Unmarshall(JsonUnmarshallerContext context) + { + ExportDestinationConfiguration unmarshalledObject = new ExportDestinationConfiguration(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("S3", targetDepth)) + { + var unmarshaller = S3ExportDestinationConfigurationUnmarshaller.Instance; + unmarshalledObject.S3 = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ExportDestinationConfigurationUnmarshaller _instance = new ExportDestinationConfigurationUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ExportDestinationConfigurationUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportStatusUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportStatusUnmarshaller.cs new file mode 100644 index 000000000000..2147093a7a6c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportStatusUnmarshaller.cs @@ -0,0 +1,109 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ExportStatus Object + /// + public class ExportStatusUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ExportStatus IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ExportStatus Unmarshall(JsonUnmarshallerContext context) + { + ExportStatus unmarshalledObject = new ExportStatus(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("CompletionTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.CompletionTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ErrorMessage", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("State", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.State = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("SubmissionTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.SubmissionTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ExportStatusUnmarshaller _instance = new ExportStatusUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ExportStatusUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportSummaryUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportSummaryUnmarshaller.cs new file mode 100644 index 000000000000..d8be2e691ab4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ExportSummaryUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ExportSummary Object + /// + public class ExportSummaryUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ExportSummary IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ExportSummary Unmarshall(JsonUnmarshallerContext context) + { + ExportSummary unmarshalledObject = new ExportSummary(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ExportId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ExportId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = ExportStatusUnmarshaller.Instance; + unmarshalledObject.Status = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ExportSummaryUnmarshaller _instance = new ExportSummaryUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ExportSummaryUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceRequestMarshaller.cs new file mode 100644 index 000000000000..9f98a54cc3cd --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetAddonInstance Request Marshaller + /// + public class GetAddonInstanceRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetAddonInstanceRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetAddonInstanceRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetAddonInstance"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAddonInstanceId()) + { + context.Writer.WritePropertyName("AddonInstanceId"); + context.Writer.Write(publicRequest.AddonInstanceId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetAddonInstanceRequestMarshaller _instance = new GetAddonInstanceRequestMarshaller(); + + internal static GetAddonInstanceRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetAddonInstanceRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceResponseUnmarshaller.cs new file mode 100644 index 000000000000..6e69a747ce46 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonInstanceResponseUnmarshaller.cs @@ -0,0 +1,133 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetAddonInstance operation + /// + public class GetAddonInstanceResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetAddonInstanceResponse response = new GetAddonInstanceResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonInstanceArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonInstanceArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonSubscriptionId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonSubscriptionId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetAddonInstanceResponseUnmarshaller _instance = new GetAddonInstanceResponseUnmarshaller(); + + internal static GetAddonInstanceResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetAddonInstanceResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionRequestMarshaller.cs new file mode 100644 index 000000000000..348c931e1c6e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetAddonSubscription Request Marshaller + /// + public class GetAddonSubscriptionRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetAddonSubscriptionRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetAddonSubscriptionRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetAddonSubscription"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAddonSubscriptionId()) + { + context.Writer.WritePropertyName("AddonSubscriptionId"); + context.Writer.Write(publicRequest.AddonSubscriptionId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetAddonSubscriptionRequestMarshaller _instance = new GetAddonSubscriptionRequestMarshaller(); + + internal static GetAddonSubscriptionRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetAddonSubscriptionRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionResponseUnmarshaller.cs new file mode 100644 index 000000000000..858e13517920 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetAddonSubscriptionResponseUnmarshaller.cs @@ -0,0 +1,127 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetAddonSubscription operation + /// + public class GetAddonSubscriptionResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetAddonSubscriptionResponse response = new GetAddonSubscriptionResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("AddonSubscriptionArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.AddonSubscriptionArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetAddonSubscriptionResponseUnmarshaller _instance = new GetAddonSubscriptionResponseUnmarshaller(); + + internal static GetAddonSubscriptionResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetAddonSubscriptionResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportRequestMarshaller.cs new file mode 100644 index 000000000000..27ae305c2ff9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetArchiveExport Request Marshaller + /// + public class GetArchiveExportRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetArchiveExportRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetArchiveExportRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetArchiveExport"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetExportId()) + { + context.Writer.WritePropertyName("ExportId"); + context.Writer.Write(publicRequest.ExportId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetArchiveExportRequestMarshaller _instance = new GetArchiveExportRequestMarshaller(); + + internal static GetArchiveExportRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveExportRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportResponseUnmarshaller.cs new file mode 100644 index 000000000000..6937deaf6623 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveExportResponseUnmarshaller.cs @@ -0,0 +1,155 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetArchiveExport operation + /// + public class GetArchiveExportResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetArchiveExportResponse response = new GetArchiveExportResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ArchiveId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ExportDestinationConfiguration", targetDepth)) + { + var unmarshaller = ExportDestinationConfigurationUnmarshaller.Instance; + response.ExportDestinationConfiguration = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Filters", targetDepth)) + { + var unmarshaller = ArchiveFiltersUnmarshaller.Instance; + response.Filters = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("FromTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.FromTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MaxResults", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + response.MaxResults = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = ExportStatusUnmarshaller.Instance; + response.Status = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ToTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.ToTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetArchiveExportResponseUnmarshaller _instance = new GetArchiveExportResponseUnmarshaller(); + + internal static GetArchiveExportResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveExportResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentRequestMarshaller.cs new file mode 100644 index 000000000000..5645759bac4b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetArchiveMessageContent Request Marshaller + /// + public class GetArchiveMessageContentRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetArchiveMessageContentRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetArchiveMessageContentRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetArchiveMessageContent"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchivedMessageId()) + { + context.Writer.WritePropertyName("ArchivedMessageId"); + context.Writer.Write(publicRequest.ArchivedMessageId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetArchiveMessageContentRequestMarshaller _instance = new GetArchiveMessageContentRequestMarshaller(); + + internal static GetArchiveMessageContentRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveMessageContentRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentResponseUnmarshaller.cs new file mode 100644 index 000000000000..faa902c6e58a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageContentResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetArchiveMessageContent operation + /// + public class GetArchiveMessageContentResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetArchiveMessageContentResponse response = new GetArchiveMessageContentResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Body", targetDepth)) + { + var unmarshaller = MessageBodyUnmarshaller.Instance; + response.Body = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetArchiveMessageContentResponseUnmarshaller _instance = new GetArchiveMessageContentResponseUnmarshaller(); + + internal static GetArchiveMessageContentResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveMessageContentResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageRequestMarshaller.cs new file mode 100644 index 000000000000..f216166690fb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetArchiveMessage Request Marshaller + /// + public class GetArchiveMessageRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetArchiveMessageRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetArchiveMessageRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetArchiveMessage"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchivedMessageId()) + { + context.Writer.WritePropertyName("ArchivedMessageId"); + context.Writer.Write(publicRequest.ArchivedMessageId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetArchiveMessageRequestMarshaller _instance = new GetArchiveMessageRequestMarshaller(); + + internal static GetArchiveMessageRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveMessageRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageResponseUnmarshaller.cs new file mode 100644 index 000000000000..b5b6ed64eed0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveMessageResponseUnmarshaller.cs @@ -0,0 +1,119 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetArchiveMessage operation + /// + public class GetArchiveMessageResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetArchiveMessageResponse response = new GetArchiveMessageResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("MessageDownloadLink", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.MessageDownloadLink = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetArchiveMessageResponseUnmarshaller _instance = new GetArchiveMessageResponseUnmarshaller(); + + internal static GetArchiveMessageResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveMessageResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveRequestMarshaller.cs new file mode 100644 index 000000000000..df359f3b2058 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetArchive Request Marshaller + /// + public class GetArchiveRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetArchiveRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetArchiveRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetArchive"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetArchiveRequestMarshaller _instance = new GetArchiveRequestMarshaller(); + + internal static GetArchiveRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveResponseUnmarshaller.cs new file mode 100644 index 000000000000..de9e2fcd794d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveResponseUnmarshaller.cs @@ -0,0 +1,165 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetArchive operation + /// + public class GetArchiveResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetArchiveResponse response = new GetArchiveResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ArchiveArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ArchiveId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ArchiveName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ArchiveState", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveState = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("KmsKeyArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.KmsKeyArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Retention", targetDepth)) + { + var unmarshaller = ArchiveRetentionUnmarshaller.Instance; + response.Retention = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetArchiveResponseUnmarshaller _instance = new GetArchiveResponseUnmarshaller(); + + internal static GetArchiveResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchRequestMarshaller.cs new file mode 100644 index 000000000000..2f24c72ff68e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetArchiveSearch Request Marshaller + /// + public class GetArchiveSearchRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetArchiveSearchRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetArchiveSearchRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetArchiveSearch"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetSearchId()) + { + context.Writer.WritePropertyName("SearchId"); + context.Writer.Write(publicRequest.SearchId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetArchiveSearchRequestMarshaller _instance = new GetArchiveSearchRequestMarshaller(); + + internal static GetArchiveSearchRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveSearchRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResponseUnmarshaller.cs new file mode 100644 index 000000000000..d4c2223f48b0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResponseUnmarshaller.cs @@ -0,0 +1,149 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetArchiveSearch operation + /// + public class GetArchiveSearchResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetArchiveSearchResponse response = new GetArchiveSearchResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ArchiveId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ArchiveId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Filters", targetDepth)) + { + var unmarshaller = ArchiveFiltersUnmarshaller.Instance; + response.Filters = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("FromTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.FromTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MaxResults", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + response.MaxResults = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = SearchStatusUnmarshaller.Instance; + response.Status = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ToTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.ToTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetArchiveSearchResponseUnmarshaller _instance = new GetArchiveSearchResponseUnmarshaller(); + + internal static GetArchiveSearchResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveSearchResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsRequestMarshaller.cs new file mode 100644 index 000000000000..8c49c55e72ab --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetArchiveSearchResults Request Marshaller + /// + public class GetArchiveSearchResultsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetArchiveSearchResultsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetArchiveSearchResultsRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetArchiveSearchResults"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetSearchId()) + { + context.Writer.WritePropertyName("SearchId"); + context.Writer.Write(publicRequest.SearchId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetArchiveSearchResultsRequestMarshaller _instance = new GetArchiveSearchResultsRequestMarshaller(); + + internal static GetArchiveSearchResultsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveSearchResultsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsResponseUnmarshaller.cs new file mode 100644 index 000000000000..2645b2f88bf9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetArchiveSearchResultsResponseUnmarshaller.cs @@ -0,0 +1,123 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetArchiveSearchResults operation + /// + public class GetArchiveSearchResultsResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetArchiveSearchResultsResponse response = new GetArchiveSearchResultsResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Rows", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RowUnmarshaller.Instance); + response.Rows = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetArchiveSearchResultsResponseUnmarshaller _instance = new GetArchiveSearchResultsResponseUnmarshaller(); + + internal static GetArchiveSearchResultsResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetArchiveSearchResultsResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointRequestMarshaller.cs new file mode 100644 index 000000000000..a8292ea91475 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetIngressPoint Request Marshaller + /// + public class GetIngressPointRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetIngressPointRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetIngressPointRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetIngressPoint"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetIngressPointId()) + { + context.Writer.WritePropertyName("IngressPointId"); + context.Writer.Write(publicRequest.IngressPointId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetIngressPointRequestMarshaller _instance = new GetIngressPointRequestMarshaller(); + + internal static GetIngressPointRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetIngressPointRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointResponseUnmarshaller.cs new file mode 100644 index 000000000000..1cb24a4fb9fb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetIngressPointResponseUnmarshaller.cs @@ -0,0 +1,175 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetIngressPoint operation + /// + public class GetIngressPointResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetIngressPointResponse response = new GetIngressPointResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ARecord", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ARecord = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IngressPointArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.IngressPointArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IngressPointAuthConfiguration", targetDepth)) + { + var unmarshaller = IngressPointAuthConfigurationUnmarshaller.Instance; + response.IngressPointAuthConfiguration = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IngressPointId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.IngressPointId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IngressPointName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.IngressPointName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSetId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RuleSetId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.Status = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicyId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.TrafficPolicyId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Type", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.Type = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetIngressPointResponseUnmarshaller _instance = new GetIngressPointResponseUnmarshaller(); + + internal static GetIngressPointResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetIngressPointResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayRequestMarshaller.cs new file mode 100644 index 000000000000..812f4213e17f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetRelay Request Marshaller + /// + public class GetRelayRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetRelayRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetRelayRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetRelay"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetRelayId()) + { + context.Writer.WritePropertyName("RelayId"); + context.Writer.Write(publicRequest.RelayId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetRelayRequestMarshaller _instance = new GetRelayRequestMarshaller(); + + internal static GetRelayRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetRelayRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayResponseUnmarshaller.cs new file mode 100644 index 000000000000..1e8bf9897f5b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRelayResponseUnmarshaller.cs @@ -0,0 +1,157 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetRelay operation + /// + public class GetRelayResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetRelayResponse response = new GetRelayResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Authentication", targetDepth)) + { + var unmarshaller = RelayAuthenticationUnmarshaller.Instance; + response.Authentication = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("LastModifiedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.LastModifiedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RelayArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RelayArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RelayId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RelayId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RelayName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RelayName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ServerName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ServerName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ServerPort", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + response.ServerPort = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetRelayResponseUnmarshaller _instance = new GetRelayResponseUnmarshaller(); + + internal static GetRelayResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetRelayResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetRequestMarshaller.cs new file mode 100644 index 000000000000..e4e2e238a838 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetRuleSet Request Marshaller + /// + public class GetRuleSetRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetRuleSetRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetRuleSetRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetRuleSet"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetRuleSetId()) + { + context.Writer.WritePropertyName("RuleSetId"); + context.Writer.Write(publicRequest.RuleSetId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetRuleSetRequestMarshaller _instance = new GetRuleSetRequestMarshaller(); + + internal static GetRuleSetRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetRuleSetRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetResponseUnmarshaller.cs new file mode 100644 index 000000000000..158051e82168 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetRuleSetResponseUnmarshaller.cs @@ -0,0 +1,145 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetRuleSet operation + /// + public class GetRuleSetResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetRuleSetResponse response = new GetRuleSetResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("CreatedDate", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedDate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("LastModificationDate", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.LastModificationDate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Rules", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RuleUnmarshaller.Instance); + response.Rules = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSetArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RuleSetArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSetId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RuleSetId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSetName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.RuleSetName = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetRuleSetResponseUnmarshaller _instance = new GetRuleSetResponseUnmarshaller(); + + internal static GetRuleSetResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetRuleSetResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyRequestMarshaller.cs new file mode 100644 index 000000000000..05f4d4900d44 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// GetTrafficPolicy Request Marshaller + /// + public class GetTrafficPolicyRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((GetTrafficPolicyRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(GetTrafficPolicyRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.GetTrafficPolicy"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetTrafficPolicyId()) + { + context.Writer.WritePropertyName("TrafficPolicyId"); + context.Writer.Write(publicRequest.TrafficPolicyId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static GetTrafficPolicyRequestMarshaller _instance = new GetTrafficPolicyRequestMarshaller(); + + internal static GetTrafficPolicyRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetTrafficPolicyRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyResponseUnmarshaller.cs new file mode 100644 index 000000000000..1d4b04726ce9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/GetTrafficPolicyResponseUnmarshaller.cs @@ -0,0 +1,157 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for GetTrafficPolicy operation + /// + public class GetTrafficPolicyResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + GetTrafficPolicyResponse response = new GetTrafficPolicyResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("CreatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.CreatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("DefaultAction", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.DefaultAction = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("LastUpdatedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + response.LastUpdatedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MaxMessageSizeBytes", targetDepth)) + { + var unmarshaller = IntUnmarshaller.Instance; + response.MaxMessageSizeBytes = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("PolicyStatements", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(PolicyStatementUnmarshaller.Instance); + response.PolicyStatements = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicyArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.TrafficPolicyArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicyId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.TrafficPolicyId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicyName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.TrafficPolicyName = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static GetTrafficPolicyResponseUnmarshaller _instance = new GetTrafficPolicyResponseUnmarshaller(); + + internal static GetTrafficPolicyResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static GetTrafficPolicyResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisMarshaller.cs new file mode 100644 index 000000000000..cb2604b8c2d9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressAnalysis Marshaller + /// + public class IngressAnalysisMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressAnalysis requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAnalyzer()) + { + context.Writer.WritePropertyName("Analyzer"); + context.Writer.Write(requestObject.Analyzer); + } + + if(requestObject.IsSetResultField()) + { + context.Writer.WritePropertyName("ResultField"); + context.Writer.Write(requestObject.ResultField); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressAnalysisMarshaller Instance = new IngressAnalysisMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisUnmarshaller.cs new file mode 100644 index 000000000000..484b48392f2d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressAnalysisUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressAnalysis Object + /// + public class IngressAnalysisUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressAnalysis IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressAnalysis Unmarshall(JsonUnmarshallerContext context) + { + IngressAnalysis unmarshalledObject = new IngressAnalysis(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Analyzer", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Analyzer = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ResultField", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ResultField = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressAnalysisUnmarshaller _instance = new IngressAnalysisUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressAnalysisUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionMarshaller.cs new file mode 100644 index 000000000000..267b58d69538 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionMarshaller.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressBooleanExpression Marshaller + /// + public class IngressBooleanExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressBooleanExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressBooleanToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressBooleanExpressionMarshaller Instance = new IngressBooleanExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionUnmarshaller.cs new file mode 100644 index 000000000000..5e9ae20c6605 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanExpressionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressBooleanExpression Object + /// + public class IngressBooleanExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressBooleanExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressBooleanExpression Unmarshall(JsonUnmarshallerContext context) + { + IngressBooleanExpression unmarshalledObject = new IngressBooleanExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = IngressBooleanToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressBooleanExpressionUnmarshaller _instance = new IngressBooleanExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressBooleanExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateMarshaller.cs new file mode 100644 index 000000000000..8c39260eb318 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateMarshaller.cs @@ -0,0 +1,70 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressBooleanToEvaluate Marshaller + /// + public class IngressBooleanToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressBooleanToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAnalysis()) + { + context.Writer.WritePropertyName("Analysis"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressAnalysisMarshaller.Instance; + marshaller.Marshall(requestObject.Analysis, context); + + context.Writer.WriteObjectEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressBooleanToEvaluateMarshaller Instance = new IngressBooleanToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..cdd027588e57 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressBooleanToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressBooleanToEvaluate Object + /// + public class IngressBooleanToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressBooleanToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressBooleanToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + IngressBooleanToEvaluate unmarshalledObject = new IngressBooleanToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Analysis", targetDepth)) + { + var unmarshaller = IngressAnalysisUnmarshaller.Instance; + unmarshalledObject.Analysis = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressBooleanToEvaluateUnmarshaller _instance = new IngressBooleanToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressBooleanToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateMarshaller.cs new file mode 100644 index 000000000000..3b5a69c33b0a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressIpToEvaluate Marshaller + /// + public class IngressIpToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressIpToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressIpToEvaluateMarshaller Instance = new IngressIpToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..2826a76b8e41 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressIpToEvaluate Object + /// + public class IngressIpToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressIpToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressIpToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + IngressIpToEvaluate unmarshalledObject = new IngressIpToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressIpToEvaluateUnmarshaller _instance = new IngressIpToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressIpToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionMarshaller.cs new file mode 100644 index 000000000000..75dcb0583d10 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressIpv4Expression Marshaller + /// + public class IngressIpv4ExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressIpv4Expression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressIpToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressIpv4ExpressionMarshaller Instance = new IngressIpv4ExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionUnmarshaller.cs new file mode 100644 index 000000000000..3893e7d077e3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressIpv4ExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressIpv4Expression Object + /// + public class IngressIpv4ExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressIpv4Expression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressIpv4Expression Unmarshall(JsonUnmarshallerContext context) + { + IngressIpv4Expression unmarshalledObject = new IngressIpv4Expression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = IngressIpToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressIpv4ExpressionUnmarshaller _instance = new IngressIpv4ExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressIpv4ExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointAuthConfigurationUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointAuthConfigurationUnmarshaller.cs new file mode 100644 index 000000000000..ad70038e8a4e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointAuthConfigurationUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressPointAuthConfiguration Object + /// + public class IngressPointAuthConfigurationUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressPointAuthConfiguration IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressPointAuthConfiguration Unmarshall(JsonUnmarshallerContext context) + { + IngressPointAuthConfiguration unmarshalledObject = new IngressPointAuthConfiguration(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("IngressPointPasswordConfiguration", targetDepth)) + { + var unmarshaller = IngressPointPasswordConfigurationUnmarshaller.Instance; + unmarshalledObject.IngressPointPasswordConfiguration = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("SecretArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.SecretArn = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressPointAuthConfigurationUnmarshaller _instance = new IngressPointAuthConfigurationUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressPointAuthConfigurationUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointConfigurationMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointConfigurationMarshaller.cs new file mode 100644 index 000000000000..197e2b079e73 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointConfigurationMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressPointConfiguration Marshaller + /// + public class IngressPointConfigurationMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressPointConfiguration requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetSecretArn()) + { + context.Writer.WritePropertyName("SecretArn"); + context.Writer.Write(requestObject.SecretArn); + } + + if(requestObject.IsSetSmtpPassword()) + { + context.Writer.WritePropertyName("SmtpPassword"); + context.Writer.Write(requestObject.SmtpPassword); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressPointConfigurationMarshaller Instance = new IngressPointConfigurationMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointPasswordConfigurationUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointPasswordConfigurationUnmarshaller.cs new file mode 100644 index 000000000000..98ea17ea05f9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointPasswordConfigurationUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressPointPasswordConfiguration Object + /// + public class IngressPointPasswordConfigurationUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressPointPasswordConfiguration IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressPointPasswordConfiguration Unmarshall(JsonUnmarshallerContext context) + { + IngressPointPasswordConfiguration unmarshalledObject = new IngressPointPasswordConfiguration(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("PreviousSmtpPasswordExpiryTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.PreviousSmtpPasswordExpiryTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("PreviousSmtpPasswordVersion", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.PreviousSmtpPasswordVersion = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("SmtpPasswordVersion", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.SmtpPasswordVersion = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressPointPasswordConfigurationUnmarshaller _instance = new IngressPointPasswordConfigurationUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressPointPasswordConfigurationUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointUnmarshaller.cs new file mode 100644 index 000000000000..0e9ed75574bf --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressPointUnmarshaller.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressPoint Object + /// + public class IngressPointUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressPoint IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressPoint Unmarshall(JsonUnmarshallerContext context) + { + IngressPoint unmarshalledObject = new IngressPoint(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ARecord", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ARecord = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IngressPointId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.IngressPointId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IngressPointName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.IngressPointName = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Status = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Type", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Type = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressPointUnmarshaller _instance = new IngressPointUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressPointUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionMarshaller.cs new file mode 100644 index 000000000000..520b1811791a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressStringExpression Marshaller + /// + public class IngressStringExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressStringExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressStringToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressStringExpressionMarshaller Instance = new IngressStringExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionUnmarshaller.cs new file mode 100644 index 000000000000..e7d6750b7150 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressStringExpression Object + /// + public class IngressStringExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressStringExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressStringExpression Unmarshall(JsonUnmarshallerContext context) + { + IngressStringExpression unmarshalledObject = new IngressStringExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = IngressStringToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressStringExpressionUnmarshaller _instance = new IngressStringExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressStringExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateMarshaller.cs new file mode 100644 index 000000000000..4c70339f7087 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressStringToEvaluate Marshaller + /// + public class IngressStringToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressStringToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressStringToEvaluateMarshaller Instance = new IngressStringToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..3325233e9bb9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressStringToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressStringToEvaluate Object + /// + public class IngressStringToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressStringToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressStringToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + IngressStringToEvaluate unmarshalledObject = new IngressStringToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressStringToEvaluateUnmarshaller _instance = new IngressStringToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressStringToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionMarshaller.cs new file mode 100644 index 000000000000..45ac8a828daa --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionMarshaller.cs @@ -0,0 +1,82 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressTlsProtocolExpression Marshaller + /// + public class IngressTlsProtocolExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressTlsProtocolExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressTlsProtocolToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValue()) + { + context.Writer.WritePropertyName("Value"); + context.Writer.Write(requestObject.Value); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressTlsProtocolExpressionMarshaller Instance = new IngressTlsProtocolExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionUnmarshaller.cs new file mode 100644 index 000000000000..30fce9ccdab0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressTlsProtocolExpression Object + /// + public class IngressTlsProtocolExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressTlsProtocolExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressTlsProtocolExpression Unmarshall(JsonUnmarshallerContext context) + { + IngressTlsProtocolExpression unmarshalledObject = new IngressTlsProtocolExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = IngressTlsProtocolToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Value", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Value = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressTlsProtocolExpressionUnmarshaller _instance = new IngressTlsProtocolExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressTlsProtocolExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateMarshaller.cs new file mode 100644 index 000000000000..ba6cc943bd1b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// IngressTlsProtocolToEvaluate Marshaller + /// + public class IngressTlsProtocolToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(IngressTlsProtocolToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static IngressTlsProtocolToEvaluateMarshaller Instance = new IngressTlsProtocolToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..b041b331d052 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/IngressTlsProtocolToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for IngressTlsProtocolToEvaluate Object + /// + public class IngressTlsProtocolToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + IngressTlsProtocolToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public IngressTlsProtocolToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + IngressTlsProtocolToEvaluate unmarshalledObject = new IngressTlsProtocolToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static IngressTlsProtocolToEvaluateUnmarshaller _instance = new IngressTlsProtocolToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static IngressTlsProtocolToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesRequestMarshaller.cs new file mode 100644 index 000000000000..915f51410d1a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListAddonInstances Request Marshaller + /// + public class ListAddonInstancesRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListAddonInstancesRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListAddonInstancesRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListAddonInstances"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListAddonInstancesRequestMarshaller _instance = new ListAddonInstancesRequestMarshaller(); + + internal static ListAddonInstancesRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListAddonInstancesRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesResponseUnmarshaller.cs new file mode 100644 index 000000000000..5722f3db6cbe --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonInstancesResponseUnmarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListAddonInstances operation + /// + public class ListAddonInstancesResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListAddonInstancesResponse response = new ListAddonInstancesResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonInstances", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(AddonInstanceUnmarshaller.Instance); + response.AddonInstances = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListAddonInstancesResponseUnmarshaller _instance = new ListAddonInstancesResponseUnmarshaller(); + + internal static ListAddonInstancesResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListAddonInstancesResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsRequestMarshaller.cs new file mode 100644 index 000000000000..921749e7e8f6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListAddonSubscriptions Request Marshaller + /// + public class ListAddonSubscriptionsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListAddonSubscriptionsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListAddonSubscriptionsRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListAddonSubscriptions"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListAddonSubscriptionsRequestMarshaller _instance = new ListAddonSubscriptionsRequestMarshaller(); + + internal static ListAddonSubscriptionsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListAddonSubscriptionsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsResponseUnmarshaller.cs new file mode 100644 index 000000000000..e419886de889 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListAddonSubscriptionsResponseUnmarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListAddonSubscriptions operation + /// + public class ListAddonSubscriptionsResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListAddonSubscriptionsResponse response = new ListAddonSubscriptionsResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddonSubscriptions", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(AddonSubscriptionUnmarshaller.Instance); + response.AddonSubscriptions = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListAddonSubscriptionsResponseUnmarshaller _instance = new ListAddonSubscriptionsResponseUnmarshaller(); + + internal static ListAddonSubscriptionsResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListAddonSubscriptionsResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsRequestMarshaller.cs new file mode 100644 index 000000000000..3eb71726f117 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsRequestMarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListArchiveExports Request Marshaller + /// + public class ListArchiveExportsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListArchiveExportsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListArchiveExportsRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListArchiveExports"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListArchiveExportsRequestMarshaller _instance = new ListArchiveExportsRequestMarshaller(); + + internal static ListArchiveExportsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListArchiveExportsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsResponseUnmarshaller.cs new file mode 100644 index 000000000000..2119d812f77c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveExportsResponseUnmarshaller.cs @@ -0,0 +1,129 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListArchiveExports operation + /// + public class ListArchiveExportsResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListArchiveExportsResponse response = new ListArchiveExportsResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Exports", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(ExportSummaryUnmarshaller.Instance); + response.Exports = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListArchiveExportsResponseUnmarshaller _instance = new ListArchiveExportsResponseUnmarshaller(); + + internal static ListArchiveExportsResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListArchiveExportsResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesRequestMarshaller.cs new file mode 100644 index 000000000000..42bf94af76f4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesRequestMarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListArchiveSearches Request Marshaller + /// + public class ListArchiveSearchesRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListArchiveSearchesRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListArchiveSearchesRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListArchiveSearches"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListArchiveSearchesRequestMarshaller _instance = new ListArchiveSearchesRequestMarshaller(); + + internal static ListArchiveSearchesRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListArchiveSearchesRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesResponseUnmarshaller.cs new file mode 100644 index 000000000000..be537e50b837 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchiveSearchesResponseUnmarshaller.cs @@ -0,0 +1,129 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListArchiveSearches operation + /// + public class ListArchiveSearchesResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListArchiveSearchesResponse response = new ListArchiveSearchesResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Searches", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(SearchSummaryUnmarshaller.Instance); + response.Searches = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListArchiveSearchesResponseUnmarshaller _instance = new ListArchiveSearchesResponseUnmarshaller(); + + internal static ListArchiveSearchesResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListArchiveSearchesResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesRequestMarshaller.cs new file mode 100644 index 000000000000..ca4acd8bd2ea --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListArchives Request Marshaller + /// + public class ListArchivesRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListArchivesRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListArchivesRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListArchives"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListArchivesRequestMarshaller _instance = new ListArchivesRequestMarshaller(); + + internal static ListArchivesRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListArchivesRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesResponseUnmarshaller.cs new file mode 100644 index 000000000000..5e0c7c718657 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListArchivesResponseUnmarshaller.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListArchives operation + /// + public class ListArchivesResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListArchivesResponse response = new ListArchivesResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Archives", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(ArchiveUnmarshaller.Instance); + response.Archives = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListArchivesResponseUnmarshaller _instance = new ListArchivesResponseUnmarshaller(); + + internal static ListArchivesResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListArchivesResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsRequestMarshaller.cs new file mode 100644 index 000000000000..e5b3c6395112 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListIngressPoints Request Marshaller + /// + public class ListIngressPointsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListIngressPointsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListIngressPointsRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListIngressPoints"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListIngressPointsRequestMarshaller _instance = new ListIngressPointsRequestMarshaller(); + + internal static ListIngressPointsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListIngressPointsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsResponseUnmarshaller.cs new file mode 100644 index 000000000000..1b34ec71713b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListIngressPointsResponseUnmarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListIngressPoints operation + /// + public class ListIngressPointsResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListIngressPointsResponse response = new ListIngressPointsResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("IngressPoints", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(IngressPointUnmarshaller.Instance); + response.IngressPoints = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListIngressPointsResponseUnmarshaller _instance = new ListIngressPointsResponseUnmarshaller(); + + internal static ListIngressPointsResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListIngressPointsResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysRequestMarshaller.cs new file mode 100644 index 000000000000..05fe0d725e59 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListRelays Request Marshaller + /// + public class ListRelaysRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListRelaysRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListRelaysRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListRelays"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListRelaysRequestMarshaller _instance = new ListRelaysRequestMarshaller(); + + internal static ListRelaysRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListRelaysRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysResponseUnmarshaller.cs new file mode 100644 index 000000000000..46cadc045f2a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRelaysResponseUnmarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListRelays operation + /// + public class ListRelaysResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListRelaysResponse response = new ListRelaysResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Relays", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RelayUnmarshaller.Instance); + response.Relays = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListRelaysResponseUnmarshaller _instance = new ListRelaysResponseUnmarshaller(); + + internal static ListRelaysResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListRelaysResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsRequestMarshaller.cs new file mode 100644 index 000000000000..5425475d1d78 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListRuleSets Request Marshaller + /// + public class ListRuleSetsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListRuleSetsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListRuleSetsRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListRuleSets"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListRuleSetsRequestMarshaller _instance = new ListRuleSetsRequestMarshaller(); + + internal static ListRuleSetsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListRuleSetsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsResponseUnmarshaller.cs new file mode 100644 index 000000000000..4c8e8e6db9d0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListRuleSetsResponseUnmarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListRuleSets operation + /// + public class ListRuleSetsResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListRuleSetsResponse response = new ListRuleSetsResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSets", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RuleSetUnmarshaller.Instance); + response.RuleSets = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListRuleSetsResponseUnmarshaller _instance = new ListRuleSetsResponseUnmarshaller(); + + internal static ListRuleSetsResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListRuleSetsResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs new file mode 100644 index 000000000000..19a6ee7605e2 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListTagsForResource Request Marshaller + /// + public class ListTagsForResourceRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListTagsForResourceRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListTagsForResourceRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListTagsForResource"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetResourceArn()) + { + context.Writer.WritePropertyName("ResourceArn"); + context.Writer.Write(publicRequest.ResourceArn); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); + + internal static ListTagsForResourceRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListTagsForResourceRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs new file mode 100644 index 000000000000..1d74c342ce30 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListTagsForResource operation + /// + public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListTagsForResourceResponse response = new ListTagsForResourceResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Tags", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(TagUnmarshaller.Instance); + response.Tags = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); + + internal static ListTagsForResourceResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListTagsForResourceResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesRequestMarshaller.cs new file mode 100644 index 000000000000..a2a988a78c01 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesRequestMarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ListTrafficPolicies Request Marshaller + /// + public class ListTrafficPoliciesRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListTrafficPoliciesRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListTrafficPoliciesRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.ListTrafficPolicies"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetNextToken()) + { + context.Writer.WritePropertyName("NextToken"); + context.Writer.Write(publicRequest.NextToken); + } + + if(publicRequest.IsSetPageSize()) + { + context.Writer.WritePropertyName("PageSize"); + context.Writer.Write(publicRequest.PageSize); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static ListTrafficPoliciesRequestMarshaller _instance = new ListTrafficPoliciesRequestMarshaller(); + + internal static ListTrafficPoliciesRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListTrafficPoliciesRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesResponseUnmarshaller.cs new file mode 100644 index 000000000000..27657c3489ec --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ListTrafficPoliciesResponseUnmarshaller.cs @@ -0,0 +1,117 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListTrafficPolicies operation + /// + public class ListTrafficPoliciesResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListTrafficPoliciesResponse response = new ListTrafficPoliciesResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicies", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(TrafficPolicyUnmarshaller.Instance); + response.TrafficPolicies = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListTrafficPoliciesResponseUnmarshaller _instance = new ListTrafficPoliciesResponseUnmarshaller(); + + internal static ListTrafficPoliciesResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListTrafficPoliciesResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/MessageBodyUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/MessageBodyUnmarshaller.cs new file mode 100644 index 000000000000..2f55aae93a0d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/MessageBodyUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for MessageBody Object + /// + public class MessageBodyUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + MessageBody IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public MessageBody Unmarshall(JsonUnmarshallerContext context) + { + MessageBody unmarshalledObject = new MessageBody(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Html", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Html = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MessageMalformed", targetDepth)) + { + var unmarshaller = BoolUnmarshaller.Instance; + unmarshalledObject.MessageMalformed = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Text", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Text = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static MessageBodyUnmarshaller _instance = new MessageBodyUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static MessageBodyUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationMarshaller.cs new file mode 100644 index 000000000000..976ef4b1db23 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationMarshaller.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// NoAuthentication Marshaller + /// + public class NoAuthenticationMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(NoAuthentication requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + } + + /// + /// Singleton Marshaller. + /// + public readonly static NoAuthenticationMarshaller Instance = new NoAuthenticationMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationUnmarshaller.cs new file mode 100644 index 000000000000..608ada72342f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/NoAuthenticationUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for NoAuthentication Object + /// + public class NoAuthenticationUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + NoAuthentication IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public NoAuthentication Unmarshall(JsonUnmarshallerContext context) + { + NoAuthentication unmarshalledObject = new NoAuthentication(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + return unmarshalledObject; + } + + + private static NoAuthenticationUnmarshaller _instance = new NoAuthenticationUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static NoAuthenticationUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionMarshaller.cs new file mode 100644 index 000000000000..9dcc108684c4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionMarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// PolicyCondition Marshaller + /// + public class PolicyConditionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(PolicyCondition requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetBooleanExpression()) + { + context.Writer.WritePropertyName("BooleanExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressBooleanExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.BooleanExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetIpExpression()) + { + context.Writer.WritePropertyName("IpExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressIpv4ExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.IpExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetStringExpression()) + { + context.Writer.WritePropertyName("StringExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressStringExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.StringExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetTlsExpression()) + { + context.Writer.WritePropertyName("TlsExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressTlsProtocolExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.TlsExpression, context); + + context.Writer.WriteObjectEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static PolicyConditionMarshaller Instance = new PolicyConditionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionUnmarshaller.cs new file mode 100644 index 000000000000..f5447a9d3953 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyConditionUnmarshaller.cs @@ -0,0 +1,109 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for PolicyCondition Object + /// + public class PolicyConditionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + PolicyCondition IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public PolicyCondition Unmarshall(JsonUnmarshallerContext context) + { + PolicyCondition unmarshalledObject = new PolicyCondition(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("BooleanExpression", targetDepth)) + { + var unmarshaller = IngressBooleanExpressionUnmarshaller.Instance; + unmarshalledObject.BooleanExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IpExpression", targetDepth)) + { + var unmarshaller = IngressIpv4ExpressionUnmarshaller.Instance; + unmarshalledObject.IpExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("StringExpression", targetDepth)) + { + var unmarshaller = IngressStringExpressionUnmarshaller.Instance; + unmarshalledObject.StringExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TlsExpression", targetDepth)) + { + var unmarshaller = IngressTlsProtocolExpressionUnmarshaller.Instance; + unmarshalledObject.TlsExpression = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static PolicyConditionUnmarshaller _instance = new PolicyConditionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static PolicyConditionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementMarshaller.cs new file mode 100644 index 000000000000..8608c1ab1884 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementMarshaller.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// PolicyStatement Marshaller + /// + public class PolicyStatementMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(PolicyStatement requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAction()) + { + context.Writer.WritePropertyName("Action"); + context.Writer.Write(requestObject.Action); + } + + if(requestObject.IsSetConditions()) + { + context.Writer.WritePropertyName("Conditions"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectConditionsListValue in requestObject.Conditions) + { + context.Writer.WriteObjectStart(); + + var marshaller = PolicyConditionMarshaller.Instance; + marshaller.Marshall(requestObjectConditionsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static PolicyStatementMarshaller Instance = new PolicyStatementMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementUnmarshaller.cs new file mode 100644 index 000000000000..b8c025d44775 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/PolicyStatementUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for PolicyStatement Object + /// + public class PolicyStatementUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + PolicyStatement IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public PolicyStatement Unmarshall(JsonUnmarshallerContext context) + { + PolicyStatement unmarshalledObject = new PolicyStatement(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Action", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Action = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Conditions", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(PolicyConditionUnmarshaller.Instance); + unmarshalledObject.Conditions = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static PolicyStatementUnmarshaller _instance = new PolicyStatementUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static PolicyStatementUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionMarshaller.cs new file mode 100644 index 000000000000..b965725ac91f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionMarshaller.cs @@ -0,0 +1,77 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RelayAction Marshaller + /// + public class RelayActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RelayAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetActionFailurePolicy()) + { + context.Writer.WritePropertyName("ActionFailurePolicy"); + context.Writer.Write(requestObject.ActionFailurePolicy); + } + + if(requestObject.IsSetMailFrom()) + { + context.Writer.WritePropertyName("MailFrom"); + context.Writer.Write(requestObject.MailFrom); + } + + if(requestObject.IsSetRelay()) + { + context.Writer.WritePropertyName("Relay"); + context.Writer.Write(requestObject.Relay); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RelayActionMarshaller Instance = new RelayActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionUnmarshaller.cs new file mode 100644 index 000000000000..a9e49fb17aa6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayActionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RelayAction Object + /// + public class RelayActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RelayAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RelayAction Unmarshall(JsonUnmarshallerContext context) + { + RelayAction unmarshalledObject = new RelayAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ActionFailurePolicy", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ActionFailurePolicy = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MailFrom", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.MailFrom = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Relay", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Relay = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RelayActionUnmarshaller _instance = new RelayActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RelayActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationMarshaller.cs new file mode 100644 index 000000000000..8ae08875ce96 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationMarshaller.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RelayAuthentication Marshaller + /// + public class RelayAuthenticationMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RelayAuthentication requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetNoAuthentication()) + { + context.Writer.WritePropertyName("NoAuthentication"); + context.Writer.WriteObjectStart(); + + var marshaller = NoAuthenticationMarshaller.Instance; + marshaller.Marshall(requestObject.NoAuthentication, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetSecretArn()) + { + context.Writer.WritePropertyName("SecretArn"); + context.Writer.Write(requestObject.SecretArn); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RelayAuthenticationMarshaller Instance = new RelayAuthenticationMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationUnmarshaller.cs new file mode 100644 index 000000000000..4dfdc12e3aeb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayAuthenticationUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RelayAuthentication Object + /// + public class RelayAuthenticationUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RelayAuthentication IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RelayAuthentication Unmarshall(JsonUnmarshallerContext context) + { + RelayAuthentication unmarshalledObject = new RelayAuthentication(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("NoAuthentication", targetDepth)) + { + var unmarshaller = NoAuthenticationUnmarshaller.Instance; + unmarshalledObject.NoAuthentication = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("SecretArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.SecretArn = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RelayAuthenticationUnmarshaller _instance = new RelayAuthenticationUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RelayAuthenticationUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayUnmarshaller.cs new file mode 100644 index 000000000000..a52bd06ffe71 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RelayUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Relay Object + /// + public class RelayUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Relay IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public Relay Unmarshall(JsonUnmarshallerContext context) + { + Relay unmarshalledObject = new Relay(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("LastModifiedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.LastModifiedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RelayId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RelayId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RelayName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RelayName = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RelayUnmarshaller _instance = new RelayUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RelayUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionMarshaller.cs new file mode 100644 index 000000000000..beb62276c2de --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionMarshaller.cs @@ -0,0 +1,70 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// ReplaceRecipientAction Marshaller + /// + public class ReplaceRecipientActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(ReplaceRecipientAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetReplaceWith()) + { + context.Writer.WritePropertyName("ReplaceWith"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectReplaceWithListValue in requestObject.ReplaceWith) + { + context.Writer.Write(requestObjectReplaceWithListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static ReplaceRecipientActionMarshaller Instance = new ReplaceRecipientActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionUnmarshaller.cs new file mode 100644 index 000000000000..1bfd30311e21 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ReplaceRecipientActionUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ReplaceRecipientAction Object + /// + public class ReplaceRecipientActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + ReplaceRecipientAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public ReplaceRecipientAction Unmarshall(JsonUnmarshallerContext context) + { + ReplaceRecipientAction unmarshalledObject = new ReplaceRecipientAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ReplaceWith", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.ReplaceWith = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static ReplaceRecipientActionUnmarshaller _instance = new ReplaceRecipientActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ReplaceRecipientActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs new file mode 100644 index 000000000000..9d09d93fc7fc --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs @@ -0,0 +1,86 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ResourceNotFoundException Object + /// + public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ResourceNotFoundExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RowUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RowUnmarshaller.cs new file mode 100644 index 000000000000..47678387a2be --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RowUnmarshaller.cs @@ -0,0 +1,169 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Row Object + /// + public class RowUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Row IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public Row Unmarshall(JsonUnmarshallerContext context) + { + Row unmarshalledObject = new Row(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ArchivedMessageId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ArchivedMessageId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Cc", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Cc = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Date", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Date = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("From", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.From = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("HasAttachments", targetDepth)) + { + var unmarshaller = BoolUnmarshaller.Instance; + unmarshalledObject.HasAttachments = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("InReplyTo", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.InReplyTo = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("MessageId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.MessageId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ReceivedHeaders", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.ReceivedHeaders = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ReceivedTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.ReceivedTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Subject", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Subject = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("To", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.To = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("XMailer", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.XMailer = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("XOriginalMailer", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.XOriginalMailer = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("XPriority", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.XPriority = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RowUnmarshaller _instance = new RowUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RowUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionMarshaller.cs new file mode 100644 index 000000000000..fd9b5145692e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionMarshaller.cs @@ -0,0 +1,147 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleAction Marshaller + /// + public class RuleActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAddHeader()) + { + context.Writer.WritePropertyName("AddHeader"); + context.Writer.WriteObjectStart(); + + var marshaller = AddHeaderActionMarshaller.Instance; + marshaller.Marshall(requestObject.AddHeader, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetArchive()) + { + context.Writer.WritePropertyName("Archive"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveActionMarshaller.Instance; + marshaller.Marshall(requestObject.Archive, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetDeliverToMailbox()) + { + context.Writer.WritePropertyName("DeliverToMailbox"); + context.Writer.WriteObjectStart(); + + var marshaller = DeliverToMailboxActionMarshaller.Instance; + marshaller.Marshall(requestObject.DeliverToMailbox, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetDrop()) + { + context.Writer.WritePropertyName("Drop"); + context.Writer.WriteObjectStart(); + + var marshaller = DropActionMarshaller.Instance; + marshaller.Marshall(requestObject.Drop, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetRelay()) + { + context.Writer.WritePropertyName("Relay"); + context.Writer.WriteObjectStart(); + + var marshaller = RelayActionMarshaller.Instance; + marshaller.Marshall(requestObject.Relay, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetReplaceRecipient()) + { + context.Writer.WritePropertyName("ReplaceRecipient"); + context.Writer.WriteObjectStart(); + + var marshaller = ReplaceRecipientActionMarshaller.Instance; + marshaller.Marshall(requestObject.ReplaceRecipient, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetSend()) + { + context.Writer.WritePropertyName("Send"); + context.Writer.WriteObjectStart(); + + var marshaller = SendActionMarshaller.Instance; + marshaller.Marshall(requestObject.Send, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetWriteToS3()) + { + context.Writer.WritePropertyName("WriteToS3"); + context.Writer.WriteObjectStart(); + + var marshaller = S3ActionMarshaller.Instance; + marshaller.Marshall(requestObject.WriteToS3, context); + + context.Writer.WriteObjectEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleActionMarshaller Instance = new RuleActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionUnmarshaller.cs new file mode 100644 index 000000000000..b42ae13835a0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleActionUnmarshaller.cs @@ -0,0 +1,133 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleAction Object + /// + public class RuleActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleAction Unmarshall(JsonUnmarshallerContext context) + { + RuleAction unmarshalledObject = new RuleAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("AddHeader", targetDepth)) + { + var unmarshaller = AddHeaderActionUnmarshaller.Instance; + unmarshalledObject.AddHeader = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Archive", targetDepth)) + { + var unmarshaller = ArchiveActionUnmarshaller.Instance; + unmarshalledObject.Archive = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("DeliverToMailbox", targetDepth)) + { + var unmarshaller = DeliverToMailboxActionUnmarshaller.Instance; + unmarshalledObject.DeliverToMailbox = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Drop", targetDepth)) + { + var unmarshaller = DropActionUnmarshaller.Instance; + unmarshalledObject.Drop = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Relay", targetDepth)) + { + var unmarshaller = RelayActionUnmarshaller.Instance; + unmarshalledObject.Relay = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ReplaceRecipient", targetDepth)) + { + var unmarshaller = ReplaceRecipientActionUnmarshaller.Instance; + unmarshalledObject.ReplaceRecipient = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Send", targetDepth)) + { + var unmarshaller = SendActionUnmarshaller.Instance; + unmarshalledObject.Send = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("WriteToS3", targetDepth)) + { + var unmarshaller = S3ActionUnmarshaller.Instance; + unmarshalledObject.WriteToS3 = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleActionUnmarshaller _instance = new RuleActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionMarshaller.cs new file mode 100644 index 000000000000..8bf7ab3ac424 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionMarshaller.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleBooleanExpression Marshaller + /// + public class RuleBooleanExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleBooleanExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleBooleanToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleBooleanExpressionMarshaller Instance = new RuleBooleanExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionUnmarshaller.cs new file mode 100644 index 000000000000..2137e5749a11 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanExpressionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleBooleanExpression Object + /// + public class RuleBooleanExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleBooleanExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleBooleanExpression Unmarshall(JsonUnmarshallerContext context) + { + RuleBooleanExpression unmarshalledObject = new RuleBooleanExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = RuleBooleanToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleBooleanExpressionUnmarshaller _instance = new RuleBooleanExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleBooleanExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateMarshaller.cs new file mode 100644 index 000000000000..31bc536a5fac --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleBooleanToEvaluate Marshaller + /// + public class RuleBooleanToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleBooleanToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleBooleanToEvaluateMarshaller Instance = new RuleBooleanToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..aa13ccc90286 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleBooleanToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleBooleanToEvaluate Object + /// + public class RuleBooleanToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleBooleanToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleBooleanToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + RuleBooleanToEvaluate unmarshalledObject = new RuleBooleanToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleBooleanToEvaluateUnmarshaller _instance = new RuleBooleanToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleBooleanToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionMarshaller.cs new file mode 100644 index 000000000000..09bab477cee4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionMarshaller.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleCondition Marshaller + /// + public class RuleConditionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleCondition requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetBooleanExpression()) + { + context.Writer.WritePropertyName("BooleanExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleBooleanExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.BooleanExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetDmarcExpression()) + { + context.Writer.WritePropertyName("DmarcExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleDmarcExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.DmarcExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetIpExpression()) + { + context.Writer.WritePropertyName("IpExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleIpExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.IpExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetNumberExpression()) + { + context.Writer.WritePropertyName("NumberExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleNumberExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.NumberExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetStringExpression()) + { + context.Writer.WritePropertyName("StringExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleStringExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.StringExpression, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetVerdictExpression()) + { + context.Writer.WritePropertyName("VerdictExpression"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleVerdictExpressionMarshaller.Instance; + marshaller.Marshall(requestObject.VerdictExpression, context); + + context.Writer.WriteObjectEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleConditionMarshaller Instance = new RuleConditionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionUnmarshaller.cs new file mode 100644 index 000000000000..21f83177545b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleConditionUnmarshaller.cs @@ -0,0 +1,121 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleCondition Object + /// + public class RuleConditionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleCondition IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleCondition Unmarshall(JsonUnmarshallerContext context) + { + RuleCondition unmarshalledObject = new RuleCondition(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("BooleanExpression", targetDepth)) + { + var unmarshaller = RuleBooleanExpressionUnmarshaller.Instance; + unmarshalledObject.BooleanExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("DmarcExpression", targetDepth)) + { + var unmarshaller = RuleDmarcExpressionUnmarshaller.Instance; + unmarshalledObject.DmarcExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("IpExpression", targetDepth)) + { + var unmarshaller = RuleIpExpressionUnmarshaller.Instance; + unmarshalledObject.IpExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NumberExpression", targetDepth)) + { + var unmarshaller = RuleNumberExpressionUnmarshaller.Instance; + unmarshalledObject.NumberExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("StringExpression", targetDepth)) + { + var unmarshaller = RuleStringExpressionUnmarshaller.Instance; + unmarshalledObject.StringExpression = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("VerdictExpression", targetDepth)) + { + var unmarshaller = RuleVerdictExpressionUnmarshaller.Instance; + unmarshalledObject.VerdictExpression = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleConditionUnmarshaller _instance = new RuleConditionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleConditionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionMarshaller.cs new file mode 100644 index 000000000000..9a0eec7d643a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionMarshaller.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleDmarcExpression Marshaller + /// + public class RuleDmarcExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleDmarcExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleDmarcExpressionMarshaller Instance = new RuleDmarcExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionUnmarshaller.cs new file mode 100644 index 000000000000..6cc3606b2d75 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleDmarcExpressionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleDmarcExpression Object + /// + public class RuleDmarcExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleDmarcExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleDmarcExpression Unmarshall(JsonUnmarshallerContext context) + { + RuleDmarcExpression unmarshalledObject = new RuleDmarcExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleDmarcExpressionUnmarshaller _instance = new RuleDmarcExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleDmarcExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionMarshaller.cs new file mode 100644 index 000000000000..2d84514a03c7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleIpExpression Marshaller + /// + public class RuleIpExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleIpExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleIpToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleIpExpressionMarshaller Instance = new RuleIpExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionUnmarshaller.cs new file mode 100644 index 000000000000..0c32bd0b0be6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleIpExpression Object + /// + public class RuleIpExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleIpExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleIpExpression Unmarshall(JsonUnmarshallerContext context) + { + RuleIpExpression unmarshalledObject = new RuleIpExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = RuleIpToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleIpExpressionUnmarshaller _instance = new RuleIpExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleIpExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateMarshaller.cs new file mode 100644 index 000000000000..e19d11143dfc --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleIpToEvaluate Marshaller + /// + public class RuleIpToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleIpToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleIpToEvaluateMarshaller Instance = new RuleIpToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..3d8c1fac678f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleIpToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleIpToEvaluate Object + /// + public class RuleIpToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleIpToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleIpToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + RuleIpToEvaluate unmarshalledObject = new RuleIpToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleIpToEvaluateUnmarshaller _instance = new RuleIpToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleIpToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleMarshaller.cs new file mode 100644 index 000000000000..7decd5cc7895 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleMarshaller.cs @@ -0,0 +1,113 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Rule Marshaller + /// + public class RuleMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(Rule requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetActions()) + { + context.Writer.WritePropertyName("Actions"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectActionsListValue in requestObject.Actions) + { + context.Writer.WriteObjectStart(); + + var marshaller = RuleActionMarshaller.Instance; + marshaller.Marshall(requestObjectActionsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(requestObject.IsSetConditions()) + { + context.Writer.WritePropertyName("Conditions"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectConditionsListValue in requestObject.Conditions) + { + context.Writer.WriteObjectStart(); + + var marshaller = RuleConditionMarshaller.Instance; + marshaller.Marshall(requestObjectConditionsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(requestObject.IsSetName()) + { + context.Writer.WritePropertyName("Name"); + context.Writer.Write(requestObject.Name); + } + + if(requestObject.IsSetUnless()) + { + context.Writer.WritePropertyName("Unless"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectUnlessListValue in requestObject.Unless) + { + context.Writer.WriteObjectStart(); + + var marshaller = RuleConditionMarshaller.Instance; + marshaller.Marshall(requestObjectUnlessListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleMarshaller Instance = new RuleMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionMarshaller.cs new file mode 100644 index 000000000000..26af2e62beec --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionMarshaller.cs @@ -0,0 +1,89 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleNumberExpression Marshaller + /// + public class RuleNumberExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleNumberExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleNumberToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValue()) + { + context.Writer.WritePropertyName("Value"); + if(StringUtils.IsSpecialDoubleValue(requestObject.Value)) + { + context.Writer.Write(StringUtils.FromSpecialDoubleValue(requestObject.Value)); + } + else + { + context.Writer.Write(requestObject.Value); + } + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleNumberExpressionMarshaller Instance = new RuleNumberExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionUnmarshaller.cs new file mode 100644 index 000000000000..53e7b29dc983 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleNumberExpression Object + /// + public class RuleNumberExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleNumberExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleNumberExpression Unmarshall(JsonUnmarshallerContext context) + { + RuleNumberExpression unmarshalledObject = new RuleNumberExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = RuleNumberToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Value", targetDepth)) + { + var unmarshaller = DoubleUnmarshaller.Instance; + unmarshalledObject.Value = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleNumberExpressionUnmarshaller _instance = new RuleNumberExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleNumberExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateMarshaller.cs new file mode 100644 index 000000000000..b663fe473274 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleNumberToEvaluate Marshaller + /// + public class RuleNumberToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleNumberToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleNumberToEvaluateMarshaller Instance = new RuleNumberToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..1837a204e2e2 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleNumberToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleNumberToEvaluate Object + /// + public class RuleNumberToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleNumberToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleNumberToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + RuleNumberToEvaluate unmarshalledObject = new RuleNumberToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleNumberToEvaluateUnmarshaller _instance = new RuleNumberToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleNumberToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleSetUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleSetUnmarshaller.cs new file mode 100644 index 000000000000..681e3abad60b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleSetUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleSet Object + /// + public class RuleSetUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleSet IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleSet Unmarshall(JsonUnmarshallerContext context) + { + RuleSet unmarshalledObject = new RuleSet(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("LastModificationDate", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.LastModificationDate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSetId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RuleSetId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RuleSetName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RuleSetName = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleSetUnmarshaller _instance = new RuleSetUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleSetUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionMarshaller.cs new file mode 100644 index 000000000000..636c6d7db2ea --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleStringExpression Marshaller + /// + public class RuleStringExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleStringExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleStringToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleStringExpressionMarshaller Instance = new RuleStringExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionUnmarshaller.cs new file mode 100644 index 000000000000..acd367e1ea04 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleStringExpression Object + /// + public class RuleStringExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleStringExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleStringExpression Unmarshall(JsonUnmarshallerContext context) + { + RuleStringExpression unmarshalledObject = new RuleStringExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = RuleStringToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleStringExpressionUnmarshaller _instance = new RuleStringExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleStringExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateMarshaller.cs new file mode 100644 index 000000000000..3fc772a91f9b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleStringToEvaluate Marshaller + /// + public class RuleStringToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleStringToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleStringToEvaluateMarshaller Instance = new RuleStringToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..451efcb570b3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleStringToEvaluateUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleStringToEvaluate Object + /// + public class RuleStringToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleStringToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleStringToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + RuleStringToEvaluate unmarshalledObject = new RuleStringToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleStringToEvaluateUnmarshaller _instance = new RuleStringToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleStringToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleUnmarshaller.cs new file mode 100644 index 000000000000..fa434a1161cf --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleUnmarshaller.cs @@ -0,0 +1,109 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Rule Object + /// + public class RuleUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Rule IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public Rule Unmarshall(JsonUnmarshallerContext context) + { + Rule unmarshalledObject = new Rule(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Actions", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RuleActionUnmarshaller.Instance); + unmarshalledObject.Actions = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Conditions", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RuleConditionUnmarshaller.Instance); + unmarshalledObject.Conditions = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Name", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Name = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Unless", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(RuleConditionUnmarshaller.Instance); + unmarshalledObject.Unless = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleUnmarshaller _instance = new RuleUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionMarshaller.cs new file mode 100644 index 000000000000..1070aadb0e25 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionMarshaller.cs @@ -0,0 +1,87 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleVerdictExpression Marshaller + /// + public class RuleVerdictExpressionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleVerdictExpression requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetEvaluate()) + { + context.Writer.WritePropertyName("Evaluate"); + context.Writer.WriteObjectStart(); + + var marshaller = RuleVerdictToEvaluateMarshaller.Instance; + marshaller.Marshall(requestObject.Evaluate, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetOperator()) + { + context.Writer.WritePropertyName("Operator"); + context.Writer.Write(requestObject.Operator); + } + + if(requestObject.IsSetValues()) + { + context.Writer.WritePropertyName("Values"); + context.Writer.WriteArrayStart(); + foreach(var requestObjectValuesListValue in requestObject.Values) + { + context.Writer.Write(requestObjectValuesListValue); + } + context.Writer.WriteArrayEnd(); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleVerdictExpressionMarshaller Instance = new RuleVerdictExpressionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionUnmarshaller.cs new file mode 100644 index 000000000000..14c252b40894 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictExpressionUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleVerdictExpression Object + /// + public class RuleVerdictExpressionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleVerdictExpression IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleVerdictExpression Unmarshall(JsonUnmarshallerContext context) + { + RuleVerdictExpression unmarshalledObject = new RuleVerdictExpression(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Evaluate", targetDepth)) + { + var unmarshaller = RuleVerdictToEvaluateUnmarshaller.Instance; + unmarshalledObject.Evaluate = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Operator", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Operator = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Values", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); + unmarshalledObject.Values = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleVerdictExpressionUnmarshaller _instance = new RuleVerdictExpressionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleVerdictExpressionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateMarshaller.cs new file mode 100644 index 000000000000..fc230da399e4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateMarshaller.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// RuleVerdictToEvaluate Marshaller + /// + public class RuleVerdictToEvaluateMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(RuleVerdictToEvaluate requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetAnalysis()) + { + context.Writer.WritePropertyName("Analysis"); + context.Writer.WriteObjectStart(); + + var marshaller = AnalysisMarshaller.Instance; + marshaller.Marshall(requestObject.Analysis, context); + + context.Writer.WriteObjectEnd(); + } + + if(requestObject.IsSetAttribute()) + { + context.Writer.WritePropertyName("Attribute"); + context.Writer.Write(requestObject.Attribute); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static RuleVerdictToEvaluateMarshaller Instance = new RuleVerdictToEvaluateMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateUnmarshaller.cs new file mode 100644 index 000000000000..aa4cfe07aab6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/RuleVerdictToEvaluateUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for RuleVerdictToEvaluate Object + /// + public class RuleVerdictToEvaluateUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + RuleVerdictToEvaluate IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public RuleVerdictToEvaluate Unmarshall(JsonUnmarshallerContext context) + { + RuleVerdictToEvaluate unmarshalledObject = new RuleVerdictToEvaluate(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Analysis", targetDepth)) + { + var unmarshaller = AnalysisUnmarshaller.Instance; + unmarshalledObject.Analysis = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Attribute", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Attribute = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static RuleVerdictToEvaluateUnmarshaller _instance = new RuleVerdictToEvaluateUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static RuleVerdictToEvaluateUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionMarshaller.cs new file mode 100644 index 000000000000..eab5b1905172 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionMarshaller.cs @@ -0,0 +1,89 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// S3Action Marshaller + /// + public class S3ActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(S3Action requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetActionFailurePolicy()) + { + context.Writer.WritePropertyName("ActionFailurePolicy"); + context.Writer.Write(requestObject.ActionFailurePolicy); + } + + if(requestObject.IsSetRoleArn()) + { + context.Writer.WritePropertyName("RoleArn"); + context.Writer.Write(requestObject.RoleArn); + } + + if(requestObject.IsSetS3Bucket()) + { + context.Writer.WritePropertyName("S3Bucket"); + context.Writer.Write(requestObject.S3Bucket); + } + + if(requestObject.IsSetS3Prefix()) + { + context.Writer.WritePropertyName("S3Prefix"); + context.Writer.Write(requestObject.S3Prefix); + } + + if(requestObject.IsSetS3SseKmsKeyId()) + { + context.Writer.WritePropertyName("S3SseKmsKeyId"); + context.Writer.Write(requestObject.S3SseKmsKeyId); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static S3ActionMarshaller Instance = new S3ActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionUnmarshaller.cs new file mode 100644 index 000000000000..af4c1e559ec8 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ActionUnmarshaller.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for S3Action Object + /// + public class S3ActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + S3Action IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public S3Action Unmarshall(JsonUnmarshallerContext context) + { + S3Action unmarshalledObject = new S3Action(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ActionFailurePolicy", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ActionFailurePolicy = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RoleArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("S3Bucket", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.S3Bucket = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("S3Prefix", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.S3Prefix = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("S3SseKmsKeyId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.S3SseKmsKeyId = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static S3ActionUnmarshaller _instance = new S3ActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static S3ActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationMarshaller.cs new file mode 100644 index 000000000000..d9053b467de4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationMarshaller.cs @@ -0,0 +1,65 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// S3ExportDestinationConfiguration Marshaller + /// + public class S3ExportDestinationConfigurationMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(S3ExportDestinationConfiguration requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetS3Location()) + { + context.Writer.WritePropertyName("S3Location"); + context.Writer.Write(requestObject.S3Location); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static S3ExportDestinationConfigurationMarshaller Instance = new S3ExportDestinationConfigurationMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationUnmarshaller.cs new file mode 100644 index 000000000000..8ec99a98b437 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/S3ExportDestinationConfigurationUnmarshaller.cs @@ -0,0 +1,91 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for S3ExportDestinationConfiguration Object + /// + public class S3ExportDestinationConfigurationUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + S3ExportDestinationConfiguration IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public S3ExportDestinationConfiguration Unmarshall(JsonUnmarshallerContext context) + { + S3ExportDestinationConfiguration unmarshalledObject = new S3ExportDestinationConfiguration(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("S3Location", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.S3Location = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static S3ExportDestinationConfigurationUnmarshaller _instance = new S3ExportDestinationConfigurationUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static S3ExportDestinationConfigurationUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchStatusUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchStatusUnmarshaller.cs new file mode 100644 index 000000000000..77c7a930b639 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchStatusUnmarshaller.cs @@ -0,0 +1,109 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for SearchStatus Object + /// + public class SearchStatusUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + SearchStatus IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public SearchStatus Unmarshall(JsonUnmarshallerContext context) + { + SearchStatus unmarshalledObject = new SearchStatus(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("CompletionTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.CompletionTimestamp = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("ErrorMessage", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("State", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.State = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("SubmissionTimestamp", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.SubmissionTimestamp = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static SearchStatusUnmarshaller _instance = new SearchStatusUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static SearchStatusUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchSummaryUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchSummaryUnmarshaller.cs new file mode 100644 index 000000000000..32b869da696c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SearchSummaryUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for SearchSummary Object + /// + public class SearchSummaryUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + SearchSummary IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public SearchSummary Unmarshall(JsonUnmarshallerContext context) + { + SearchSummary unmarshalledObject = new SearchSummary(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("SearchId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.SearchId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = SearchStatusUnmarshaller.Instance; + unmarshalledObject.Status = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static SearchSummaryUnmarshaller _instance = new SearchSummaryUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static SearchSummaryUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionMarshaller.cs new file mode 100644 index 000000000000..79021d1b713a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// SendAction Marshaller + /// + public class SendActionMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(SendAction requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetActionFailurePolicy()) + { + context.Writer.WritePropertyName("ActionFailurePolicy"); + context.Writer.Write(requestObject.ActionFailurePolicy); + } + + if(requestObject.IsSetRoleArn()) + { + context.Writer.WritePropertyName("RoleArn"); + context.Writer.Write(requestObject.RoleArn); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static SendActionMarshaller Instance = new SendActionMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionUnmarshaller.cs new file mode 100644 index 000000000000..409da7c6f84d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/SendActionUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for SendAction Object + /// + public class SendActionUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + SendAction IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public SendAction Unmarshall(JsonUnmarshallerContext context) + { + SendAction unmarshalledObject = new SendAction(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ActionFailurePolicy", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.ActionFailurePolicy = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("RoleArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static SendActionUnmarshaller _instance = new SendActionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static SendActionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs new file mode 100644 index 000000000000..7f82e3505b4f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs @@ -0,0 +1,86 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ServiceQuotaExceededException Object + /// + public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ServiceQuotaExceededExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportRequestMarshaller.cs new file mode 100644 index 000000000000..79ec0562884f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportRequestMarshaller.cs @@ -0,0 +1,145 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// StartArchiveExport Request Marshaller + /// + public class StartArchiveExportRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((StartArchiveExportRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(StartArchiveExportRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.StartArchiveExport"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + if(publicRequest.IsSetExportDestinationConfiguration()) + { + context.Writer.WritePropertyName("ExportDestinationConfiguration"); + context.Writer.WriteObjectStart(); + + var marshaller = ExportDestinationConfigurationMarshaller.Instance; + marshaller.Marshall(publicRequest.ExportDestinationConfiguration, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetFilters()) + { + context.Writer.WritePropertyName("Filters"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveFiltersMarshaller.Instance; + marshaller.Marshall(publicRequest.Filters, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetFromTimestamp()) + { + context.Writer.WritePropertyName("FromTimestamp"); + context.Writer.Write(publicRequest.FromTimestamp); + } + + if(publicRequest.IsSetMaxResults()) + { + context.Writer.WritePropertyName("MaxResults"); + context.Writer.Write(publicRequest.MaxResults); + } + + if(publicRequest.IsSetToTimestamp()) + { + context.Writer.WritePropertyName("ToTimestamp"); + context.Writer.Write(publicRequest.ToTimestamp); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static StartArchiveExportRequestMarshaller _instance = new StartArchiveExportRequestMarshaller(); + + internal static StartArchiveExportRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StartArchiveExportRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportResponseUnmarshaller.cs new file mode 100644 index 000000000000..504444b033ca --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveExportResponseUnmarshaller.cs @@ -0,0 +1,127 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for StartArchiveExport operation + /// + public class StartArchiveExportResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + StartArchiveExportResponse response = new StartArchiveExportResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("ExportId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.ExportId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static StartArchiveExportResponseUnmarshaller _instance = new StartArchiveExportResponseUnmarshaller(); + + internal static StartArchiveExportResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StartArchiveExportResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchRequestMarshaller.cs new file mode 100644 index 000000000000..7b233893185e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchRequestMarshaller.cs @@ -0,0 +1,134 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// StartArchiveSearch Request Marshaller + /// + public class StartArchiveSearchRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((StartArchiveSearchRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(StartArchiveSearchRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.StartArchiveSearch"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + if(publicRequest.IsSetFilters()) + { + context.Writer.WritePropertyName("Filters"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveFiltersMarshaller.Instance; + marshaller.Marshall(publicRequest.Filters, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetFromTimestamp()) + { + context.Writer.WritePropertyName("FromTimestamp"); + context.Writer.Write(publicRequest.FromTimestamp); + } + + if(publicRequest.IsSetMaxResults()) + { + context.Writer.WritePropertyName("MaxResults"); + context.Writer.Write(publicRequest.MaxResults); + } + + if(publicRequest.IsSetToTimestamp()) + { + context.Writer.WritePropertyName("ToTimestamp"); + context.Writer.Write(publicRequest.ToTimestamp); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static StartArchiveSearchRequestMarshaller _instance = new StartArchiveSearchRequestMarshaller(); + + internal static StartArchiveSearchRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StartArchiveSearchRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchResponseUnmarshaller.cs new file mode 100644 index 000000000000..27c1738ebc03 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StartArchiveSearchResponseUnmarshaller.cs @@ -0,0 +1,131 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for StartArchiveSearch operation + /// + public class StartArchiveSearchResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + StartArchiveSearchResponse response = new StartArchiveSearchResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("SearchId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.SearchId = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static StartArchiveSearchResponseUnmarshaller _instance = new StartArchiveSearchResponseUnmarshaller(); + + internal static StartArchiveSearchResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StartArchiveSearchResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportRequestMarshaller.cs new file mode 100644 index 000000000000..7c76b159b880 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// StopArchiveExport Request Marshaller + /// + public class StopArchiveExportRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((StopArchiveExportRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(StopArchiveExportRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.StopArchiveExport"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetExportId()) + { + context.Writer.WritePropertyName("ExportId"); + context.Writer.Write(publicRequest.ExportId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static StopArchiveExportRequestMarshaller _instance = new StopArchiveExportRequestMarshaller(); + + internal static StopArchiveExportRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StopArchiveExportRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportResponseUnmarshaller.cs new file mode 100644 index 000000000000..2d13f88df40e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveExportResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for StopArchiveExport operation + /// + public class StopArchiveExportResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + StopArchiveExportResponse response = new StopArchiveExportResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static StopArchiveExportResponseUnmarshaller _instance = new StopArchiveExportResponseUnmarshaller(); + + internal static StopArchiveExportResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StopArchiveExportResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchRequestMarshaller.cs new file mode 100644 index 000000000000..59dcd664f86e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchRequestMarshaller.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// StopArchiveSearch Request Marshaller + /// + public class StopArchiveSearchRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((StopArchiveSearchRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(StopArchiveSearchRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.StopArchiveSearch"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetSearchId()) + { + context.Writer.WritePropertyName("SearchId"); + context.Writer.Write(publicRequest.SearchId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static StopArchiveSearchRequestMarshaller _instance = new StopArchiveSearchRequestMarshaller(); + + internal static StopArchiveSearchRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StopArchiveSearchRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchResponseUnmarshaller.cs new file mode 100644 index 000000000000..a0c9a814f417 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/StopArchiveSearchResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for StopArchiveSearch operation + /// + public class StopArchiveSearchResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + StopArchiveSearchResponse response = new StopArchiveSearchResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static StopArchiveSearchResponseUnmarshaller _instance = new StopArchiveSearchResponseUnmarshaller(); + + internal static StopArchiveSearchResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static StopArchiveSearchResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs new file mode 100644 index 000000000000..81718463aa39 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs @@ -0,0 +1,71 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Tag Marshaller + /// + public class TagMarshaller : IRequestMarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public void Marshall(Tag requestObject, JsonMarshallerContext context) + { + if(requestObject == null) + return; + if(requestObject.IsSetKey()) + { + context.Writer.WritePropertyName("Key"); + context.Writer.Write(requestObject.Key); + } + + if(requestObject.IsSetValue()) + { + context.Writer.WritePropertyName("Value"); + context.Writer.Write(requestObject.Value); + } + + } + + /// + /// Singleton Marshaller. + /// + public readonly static TagMarshaller Instance = new TagMarshaller(); + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs new file mode 100644 index 000000000000..c19e699aa784 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs @@ -0,0 +1,121 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// TagResource Request Marshaller + /// + public class TagResourceRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((TagResourceRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(TagResourceRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.TagResource"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetResourceArn()) + { + context.Writer.WritePropertyName("ResourceArn"); + context.Writer.Write(publicRequest.ResourceArn); + } + + if(publicRequest.IsSetTags()) + { + context.Writer.WritePropertyName("Tags"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagsListValue in publicRequest.Tags) + { + context.Writer.WriteObjectStart(); + + var marshaller = TagMarshaller.Instance; + marshaller.Marshall(publicRequestTagsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); + + internal static TagResourceRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static TagResourceRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs new file mode 100644 index 000000000000..964b0eddd6e8 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs @@ -0,0 +1,112 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for TagResource operation + /// + public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + TagResourceResponse response = new TagResourceResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); + + internal static TagResourceResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static TagResourceResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs new file mode 100644 index 000000000000..9752862ad0f5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs @@ -0,0 +1,97 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Tag Object + /// + public class TagUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Tag IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public Tag Unmarshall(JsonUnmarshallerContext context) + { + Tag unmarshalledObject = new Tag(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Key", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Key = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Value", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Value = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static TagUnmarshaller _instance = new TagUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static TagUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs new file mode 100644 index 000000000000..d07f2bfd4092 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs @@ -0,0 +1,86 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ThrottlingException Object + /// + public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ThrottlingException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ThrottlingExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TrafficPolicyUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TrafficPolicyUnmarshaller.cs new file mode 100644 index 000000000000..0dac8d253d32 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/TrafficPolicyUnmarshaller.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for TrafficPolicy Object + /// + public class TrafficPolicyUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + TrafficPolicy IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// The unmarshalled object + public TrafficPolicy Unmarshall(JsonUnmarshallerContext context) + { + TrafficPolicy unmarshalledObject = new TrafficPolicy(); + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("DefaultAction", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.DefaultAction = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicyId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.TrafficPolicyId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("TrafficPolicyName", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.TrafficPolicyName = unmarshaller.Unmarshall(context); + continue; + } + } + return unmarshalledObject; + } + + + private static TrafficPolicyUnmarshaller _instance = new TrafficPolicyUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static TrafficPolicyUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs new file mode 100644 index 000000000000..f4741df7de9f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs @@ -0,0 +1,116 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// UntagResource Request Marshaller + /// + public class UntagResourceRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((UntagResourceRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(UntagResourceRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.UntagResource"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetResourceArn()) + { + context.Writer.WritePropertyName("ResourceArn"); + context.Writer.Write(publicRequest.ResourceArn); + } + + if(publicRequest.IsSetTagKeys()) + { + context.Writer.WritePropertyName("TagKeys"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys) + { + context.Writer.Write(publicRequestTagKeysListValue); + } + context.Writer.WriteArrayEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); + + internal static UntagResourceRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UntagResourceRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs new file mode 100644 index 000000000000..d6fb0e0e3955 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for UntagResource operation + /// + public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + UntagResourceResponse response = new UntagResourceResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller(); + + internal static UntagResourceResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UntagResourceResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveRequestMarshaller.cs new file mode 100644 index 000000000000..d5272a1cbd86 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveRequestMarshaller.cs @@ -0,0 +1,122 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// UpdateArchive Request Marshaller + /// + public class UpdateArchiveRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((UpdateArchiveRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(UpdateArchiveRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.UpdateArchive"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetArchiveId()) + { + context.Writer.WritePropertyName("ArchiveId"); + context.Writer.Write(publicRequest.ArchiveId); + } + + if(publicRequest.IsSetArchiveName()) + { + context.Writer.WritePropertyName("ArchiveName"); + context.Writer.Write(publicRequest.ArchiveName); + } + + if(publicRequest.IsSetRetention()) + { + context.Writer.WritePropertyName("Retention"); + context.Writer.WriteObjectStart(); + + var marshaller = ArchiveRetentionMarshaller.Instance; + marshaller.Marshall(publicRequest.Retention, context); + + context.Writer.WriteObjectEnd(); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static UpdateArchiveRequestMarshaller _instance = new UpdateArchiveRequestMarshaller(); + + internal static UpdateArchiveRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateArchiveRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveResponseUnmarshaller.cs new file mode 100644 index 000000000000..c41d2d2e8eab --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateArchiveResponseUnmarshaller.cs @@ -0,0 +1,120 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for UpdateArchive operation + /// + public class UpdateArchiveResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + UpdateArchiveResponse response = new UpdateArchiveResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) + { + return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) + { + return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static UpdateArchiveResponseUnmarshaller _instance = new UpdateArchiveResponseUnmarshaller(); + + internal static UpdateArchiveResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateArchiveResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointRequestMarshaller.cs new file mode 100644 index 000000000000..956f27fe6d5a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointRequestMarshaller.cs @@ -0,0 +1,140 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// UpdateIngressPoint Request Marshaller + /// + public class UpdateIngressPointRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((UpdateIngressPointRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(UpdateIngressPointRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.UpdateIngressPoint"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetIngressPointConfiguration()) + { + context.Writer.WritePropertyName("IngressPointConfiguration"); + context.Writer.WriteObjectStart(); + + var marshaller = IngressPointConfigurationMarshaller.Instance; + marshaller.Marshall(publicRequest.IngressPointConfiguration, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetIngressPointId()) + { + context.Writer.WritePropertyName("IngressPointId"); + context.Writer.Write(publicRequest.IngressPointId); + } + + if(publicRequest.IsSetIngressPointName()) + { + context.Writer.WritePropertyName("IngressPointName"); + context.Writer.Write(publicRequest.IngressPointName); + } + + if(publicRequest.IsSetRuleSetId()) + { + context.Writer.WritePropertyName("RuleSetId"); + context.Writer.Write(publicRequest.RuleSetId); + } + + if(publicRequest.IsSetStatusToUpdate()) + { + context.Writer.WritePropertyName("StatusToUpdate"); + context.Writer.Write(publicRequest.StatusToUpdate); + } + + if(publicRequest.IsSetTrafficPolicyId()) + { + context.Writer.WritePropertyName("TrafficPolicyId"); + context.Writer.Write(publicRequest.TrafficPolicyId); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static UpdateIngressPointRequestMarshaller _instance = new UpdateIngressPointRequestMarshaller(); + + internal static UpdateIngressPointRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateIngressPointRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointResponseUnmarshaller.cs new file mode 100644 index 000000000000..a35a75978923 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateIngressPointResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for UpdateIngressPoint operation + /// + public class UpdateIngressPointResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + UpdateIngressPointResponse response = new UpdateIngressPointResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static UpdateIngressPointResponseUnmarshaller _instance = new UpdateIngressPointResponseUnmarshaller(); + + internal static UpdateIngressPointResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateIngressPointResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayRequestMarshaller.cs new file mode 100644 index 000000000000..84a2fb3082bb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayRequestMarshaller.cs @@ -0,0 +1,134 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// UpdateRelay Request Marshaller + /// + public class UpdateRelayRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((UpdateRelayRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(UpdateRelayRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.UpdateRelay"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetAuthentication()) + { + context.Writer.WritePropertyName("Authentication"); + context.Writer.WriteObjectStart(); + + var marshaller = RelayAuthenticationMarshaller.Instance; + marshaller.Marshall(publicRequest.Authentication, context); + + context.Writer.WriteObjectEnd(); + } + + if(publicRequest.IsSetRelayId()) + { + context.Writer.WritePropertyName("RelayId"); + context.Writer.Write(publicRequest.RelayId); + } + + if(publicRequest.IsSetRelayName()) + { + context.Writer.WritePropertyName("RelayName"); + context.Writer.Write(publicRequest.RelayName); + } + + if(publicRequest.IsSetServerName()) + { + context.Writer.WritePropertyName("ServerName"); + context.Writer.Write(publicRequest.ServerName); + } + + if(publicRequest.IsSetServerPort()) + { + context.Writer.WritePropertyName("ServerPort"); + context.Writer.Write(publicRequest.ServerPort); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static UpdateRelayRequestMarshaller _instance = new UpdateRelayRequestMarshaller(); + + internal static UpdateRelayRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateRelayRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayResponseUnmarshaller.cs new file mode 100644 index 000000000000..df8d4f2f4db2 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRelayResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for UpdateRelay operation + /// + public class UpdateRelayResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + UpdateRelayResponse response = new UpdateRelayResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static UpdateRelayResponseUnmarshaller _instance = new UpdateRelayResponseUnmarshaller(); + + internal static UpdateRelayResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateRelayResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetRequestMarshaller.cs new file mode 100644 index 000000000000..295e30c0882c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetRequestMarshaller.cs @@ -0,0 +1,127 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// UpdateRuleSet Request Marshaller + /// + public class UpdateRuleSetRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((UpdateRuleSetRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(UpdateRuleSetRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.UpdateRuleSet"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetRules()) + { + context.Writer.WritePropertyName("Rules"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestRulesListValue in publicRequest.Rules) + { + context.Writer.WriteObjectStart(); + + var marshaller = RuleMarshaller.Instance; + marshaller.Marshall(publicRequestRulesListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(publicRequest.IsSetRuleSetId()) + { + context.Writer.WritePropertyName("RuleSetId"); + context.Writer.Write(publicRequest.RuleSetId); + } + + if(publicRequest.IsSetRuleSetName()) + { + context.Writer.WritePropertyName("RuleSetName"); + context.Writer.Write(publicRequest.RuleSetName); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static UpdateRuleSetRequestMarshaller _instance = new UpdateRuleSetRequestMarshaller(); + + internal static UpdateRuleSetRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateRuleSetRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetResponseUnmarshaller.cs new file mode 100644 index 000000000000..438a6d98a384 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateRuleSetResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for UpdateRuleSet operation + /// + public class UpdateRuleSetResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + UpdateRuleSetResponse response = new UpdateRuleSetResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static UpdateRuleSetResponseUnmarshaller _instance = new UpdateRuleSetResponseUnmarshaller(); + + internal static UpdateRuleSetResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateRuleSetResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyRequestMarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyRequestMarshaller.cs new file mode 100644 index 000000000000..b565d7bea09d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyRequestMarshaller.cs @@ -0,0 +1,139 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// UpdateTrafficPolicy Request Marshaller + /// + public class UpdateTrafficPolicyRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((UpdateTrafficPolicyRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(UpdateTrafficPolicyRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.MailManager"); + string target = "MailManagerSvc.UpdateTrafficPolicy"; + request.Headers["X-Amz-Target"] = target; + request.Headers["Content-Type"] = "application/x-amz-json-1.0"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-10-17"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/"; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.Validate = false; + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetDefaultAction()) + { + context.Writer.WritePropertyName("DefaultAction"); + context.Writer.Write(publicRequest.DefaultAction); + } + + if(publicRequest.IsSetMaxMessageSizeBytes()) + { + context.Writer.WritePropertyName("MaxMessageSizeBytes"); + context.Writer.Write(publicRequest.MaxMessageSizeBytes); + } + + if(publicRequest.IsSetPolicyStatements()) + { + context.Writer.WritePropertyName("PolicyStatements"); + context.Writer.WriteArrayStart(); + foreach(var publicRequestPolicyStatementsListValue in publicRequest.PolicyStatements) + { + context.Writer.WriteObjectStart(); + + var marshaller = PolicyStatementMarshaller.Instance; + marshaller.Marshall(publicRequestPolicyStatementsListValue, context); + + context.Writer.WriteObjectEnd(); + } + context.Writer.WriteArrayEnd(); + } + + if(publicRequest.IsSetTrafficPolicyId()) + { + context.Writer.WritePropertyName("TrafficPolicyId"); + context.Writer.Write(publicRequest.TrafficPolicyId); + } + + if(publicRequest.IsSetTrafficPolicyName()) + { + context.Writer.WritePropertyName("TrafficPolicyName"); + context.Writer.Write(publicRequest.TrafficPolicyName); + } + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static UpdateTrafficPolicyRequestMarshaller _instance = new UpdateTrafficPolicyRequestMarshaller(); + + internal static UpdateTrafficPolicyRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateTrafficPolicyRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyResponseUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyResponseUnmarshaller.cs new file mode 100644 index 000000000000..d4d568ff40c2 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/UpdateTrafficPolicyResponseUnmarshaller.cs @@ -0,0 +1,108 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for UpdateTrafficPolicy operation + /// + public class UpdateTrafficPolicyResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + UpdateTrafficPolicyResponse response = new UpdateTrafficPolicyResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonMailManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static UpdateTrafficPolicyResponseUnmarshaller _instance = new UpdateTrafficPolicyResponseUnmarshaller(); + + internal static UpdateTrafficPolicyResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static UpdateTrafficPolicyResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs new file mode 100644 index 000000000000..3783269f1c20 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs @@ -0,0 +1,86 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.MailManager.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ValidationException Object + /// + public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ValidationException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) + { + context.Read(); + + ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ValidationExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesRequest.cs new file mode 100644 index 000000000000..9d03bbcaba7a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesRequest.cs @@ -0,0 +1,82 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListAddonInstances operation. + /// Lists all Add On instances in your account. + /// + public partial class ListAddonInstancesRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If you received a pagination token from a previous call to this API, you can provide + /// it here to continue paginating through the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of ingress endpoint resources that are returned per call. You can + /// use NextToken to obtain further ingress endpoints. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesResponse.cs new file mode 100644 index 000000000000..38cb4dd2fe41 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListAddonInstancesResponse.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListAddonInstances operation. + /// + public partial class ListAddonInstancesResponse : AmazonWebServiceResponse + { + private List _addonInstances = AWSConfigs.InitializeCollections ? new List() : null; + private string _nextToken; + + /// + /// Gets and sets the property AddonInstances. + /// + /// The list of ingress endpoints. + /// + /// + public List AddonInstances + { + get { return this._addonInstances; } + set { this._addonInstances = value; } + } + + // Check to see if AddonInstances property is set + internal bool IsSetAddonInstances() + { + return this._addonInstances != null && (this._addonInstances.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsRequest.cs new file mode 100644 index 000000000000..024f9d901b5b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsRequest.cs @@ -0,0 +1,82 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListAddonSubscriptions operation. + /// Lists all Add On subscriptions in your account. + /// + public partial class ListAddonSubscriptionsRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If you received a pagination token from a previous call to this API, you can provide + /// it here to continue paginating through the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of ingress endpoint resources that are returned per call. You can + /// use NextToken to obtain further ingress endpoints. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsResponse.cs new file mode 100644 index 000000000000..78f63a7c5d8e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListAddonSubscriptionsResponse.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListAddonSubscriptions operation. + /// + public partial class ListAddonSubscriptionsResponse : AmazonWebServiceResponse + { + private List _addonSubscriptions = AWSConfigs.InitializeCollections ? new List() : null; + private string _nextToken; + + /// + /// Gets and sets the property AddonSubscriptions. + /// + /// The list of ingress endpoints. + /// + /// + public List AddonSubscriptions + { + get { return this._addonSubscriptions; } + set { this._addonSubscriptions = value; } + } + + // Check to see if AddonSubscriptions property is set + internal bool IsSetAddonSubscriptions() + { + return this._addonSubscriptions != null && (this._addonSubscriptions.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsRequest.cs new file mode 100644 index 000000000000..3ebf2c606883 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsRequest.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListArchiveExports operation. + /// Returns a list of email archive export jobs. + /// + public partial class ListArchiveExportsRequest : AmazonMailManagerRequest + { + private string _archiveId; + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive. + /// + /// + [AWSProperty(Required=true, Min=3, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of archive export jobs that are returned per call. You can use + /// NextToken to obtain further pages of archives. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsResponse.cs new file mode 100644 index 000000000000..f032bc7aefcc --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListArchiveExportsResponse.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing a list of archive export jobs and their statuses. + /// + public partial class ListArchiveExportsResponse : AmazonWebServiceResponse + { + private List _exports = AWSConfigs.InitializeCollections ? new List() : null; + private string _nextToken; + + /// + /// Gets and sets the property Exports. + /// + /// The list of export job identifiers and statuses. + /// + /// + public List Exports + { + get { return this._exports; } + set { this._exports = value; } + } + + // Check to see if Exports property is set + internal bool IsSetExports() + { + return this._exports != null && (this._exports.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property NextToken. + /// + /// If present, use to retrieve the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesRequest.cs new file mode 100644 index 000000000000..fb287fcc0041 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesRequest.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListArchiveSearches operation. + /// Returns a list of email archive search jobs. + /// + public partial class ListArchiveSearchesRequest : AmazonMailManagerRequest + { + private string _archiveId; + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive. + /// + /// + [AWSProperty(Required=true, Min=3, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of archive search jobs that are returned per call. You can use + /// NextToken to obtain further pages of archives. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesResponse.cs new file mode 100644 index 000000000000..67ce546c6e2d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListArchiveSearchesResponse.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing a list of archive search jobs and their statuses. + /// + public partial class ListArchiveSearchesResponse : AmazonWebServiceResponse + { + private string _nextToken; + private List _searches = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property NextToken. + /// + /// If present, use to retrieve the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property Searches. + /// + /// The list of search job identifiers and statuses. + /// + /// + public List Searches + { + get { return this._searches; } + set { this._searches = value; } + } + + // Check to see if Searches property is set + internal bool IsSetSearches() + { + return this._searches != null && (this._searches.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListArchivesRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListArchivesRequest.cs new file mode 100644 index 000000000000..e5f712a24d2c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListArchivesRequest.cs @@ -0,0 +1,83 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListArchives operation. + /// Returns a list of all email archives in your account. + /// + public partial class ListArchivesRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of archives that are returned per call. You can use NextToken to + /// obtain further pages of archives. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListArchivesResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListArchivesResponse.cs new file mode 100644 index 000000000000..f4ec548a0dfb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListArchivesResponse.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response containing a list of your email archives. + /// + public partial class ListArchivesResponse : AmazonWebServiceResponse + { + private List _archives = AWSConfigs.InitializeCollections ? new List() : null; + private string _nextToken; + + /// + /// Gets and sets the property Archives. + /// + /// The list of archive details. + /// + /// + [AWSProperty(Required=true)] + public List Archives + { + get { return this._archives; } + set { this._archives = value; } + } + + // Check to see if Archives property is set + internal bool IsSetArchives() + { + return this._archives != null && (this._archives.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property NextToken. + /// + /// If present, use to retrieve the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListIngressPointsRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListIngressPointsRequest.cs new file mode 100644 index 000000000000..69ca13c931f7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListIngressPointsRequest.cs @@ -0,0 +1,82 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListIngressPoints operation. + /// List all ingress endpoint resources. + /// + public partial class ListIngressPointsRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If you received a pagination token from a previous call to this API, you can provide + /// it here to continue paginating through the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of ingress endpoint resources that are returned per call. You can + /// use NextToken to obtain further ingress endpoints. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListIngressPointsResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListIngressPointsResponse.cs new file mode 100644 index 000000000000..446eff9f6b77 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListIngressPointsResponse.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListIngressPoints operation. + /// + public partial class ListIngressPointsResponse : AmazonWebServiceResponse + { + private List _ingressPoints = AWSConfigs.InitializeCollections ? new List() : null; + private string _nextToken; + + /// + /// Gets and sets the property IngressPoints. + /// + /// The list of ingress endpoints. + /// + /// + public List IngressPoints + { + get { return this._ingressPoints; } + set { this._ingressPoints = value; } + } + + // Check to see if IngressPoints property is set + internal bool IsSetIngressPoints() + { + return this._ingressPoints != null && (this._ingressPoints.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListRelaysRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListRelaysRequest.cs new file mode 100644 index 000000000000..96e899ba1312 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListRelaysRequest.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListRelays operation. + /// Lists all the existing relay resources. + /// + public partial class ListRelaysRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If you received a pagination token from a previous call to this API, you can provide + /// it here to continue paginating through the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The number of relays to be returned in one request. + /// + /// + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListRelaysResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListRelaysResponse.cs new file mode 100644 index 000000000000..15fbbcd15684 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListRelaysResponse.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListRelays operation. + /// + public partial class ListRelaysResponse : AmazonWebServiceResponse + { + private string _nextToken; + private List _relays = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property Relays. + /// + /// The list of returned relays. + /// + /// + [AWSProperty(Required=true)] + public List Relays + { + get { return this._relays; } + set { this._relays = value; } + } + + // Check to see if Relays property is set + internal bool IsSetRelays() + { + return this._relays != null && (this._relays.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListRuleSetsRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListRuleSetsRequest.cs new file mode 100644 index 000000000000..2f4ff993d9b6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListRuleSetsRequest.cs @@ -0,0 +1,82 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListRuleSets operation. + /// List rule sets for this account. + /// + public partial class ListRuleSetsRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If you received a pagination token from a previous call to this API, you can provide + /// it here to continue paginating through the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of rule set resources that are returned per call. You can use NextToken + /// to obtain further rule sets. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListRuleSetsResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListRuleSetsResponse.cs new file mode 100644 index 000000000000..5698d34476e5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListRuleSetsResponse.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListRuleSets operation. + /// + public partial class ListRuleSetsResponse : AmazonWebServiceResponse + { + private string _nextToken; + private List _ruleSets = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property RuleSets. + /// + /// The list of rule sets. + /// + /// + [AWSProperty(Required=true)] + public List RuleSets + { + get { return this._ruleSets; } + set { this._ruleSets = value; } + } + + // Check to see if RuleSets property is set + internal bool IsSetRuleSets() + { + return this._ruleSets != null && (this._ruleSets.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceRequest.cs new file mode 100644 index 000000000000..60ceaeca75a0 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListTagsForResource operation. + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + public partial class ListTagsForResourceRequest : AmazonMailManagerRequest + { + private string _resourceArn; + + /// + /// Gets and sets the property ResourceArn. + /// + /// The Amazon Resource Name (ARN) of the resource to retrieve tags from. + /// + /// + [AWSProperty(Required=true, Min=20, Max=1011)] + public string ResourceArn + { + get { return this._resourceArn; } + set { this._resourceArn = value; } + } + + // Check to see if ResourceArn property is set + internal bool IsSetResourceArn() + { + return this._resourceArn != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceResponse.cs new file mode 100644 index 000000000000..93040ad00c90 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListTagsForResourceResponse.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListTagsForResource operation. + /// + public partial class ListTagsForResourceResponse : AmazonWebServiceResponse + { + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Required=true, Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesRequest.cs b/sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesRequest.cs new file mode 100644 index 000000000000..8fd87ed4899f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesRequest.cs @@ -0,0 +1,82 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the ListTrafficPolicies operation. + /// List traffic policy resources. + /// + public partial class ListTrafficPoliciesRequest : AmazonMailManagerRequest + { + private string _nextToken; + private int? _pageSize; + + /// + /// Gets and sets the property NextToken. + /// + /// If you received a pagination token from a previous call to this API, you can provide + /// it here to continue paginating through the next page of results. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property PageSize. + /// + /// The maximum number of traffic policy resources that are returned per call. You can + /// use NextToken to obtain further traffic policies. + /// + /// + [AWSProperty(Min=1, Max=50)] + public int PageSize + { + get { return this._pageSize.GetValueOrDefault(); } + set { this._pageSize = value; } + } + + // Check to see if PageSize property is set + internal bool IsSetPageSize() + { + return this._pageSize.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesResponse.cs b/sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesResponse.cs new file mode 100644 index 000000000000..a04a4e0403bc --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ListTrafficPoliciesResponse.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the ListTrafficPolicies operation. + /// + public partial class ListTrafficPoliciesResponse : AmazonWebServiceResponse + { + private string _nextToken; + private List _trafficPolicies = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property NextToken. + /// + /// If NextToken is returned, there are more results available. The value of NextToken + /// is a unique pagination token for each page. Make the call again using the returned + /// token to retrieve the next page. + /// + /// + [AWSProperty(Min=1, Max=2048)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + /// + /// Gets and sets the property TrafficPolicies. + /// + /// The list of traffic policies. + /// + /// + public List TrafficPolicies + { + get { return this._trafficPolicies; } + set { this._trafficPolicies = value; } + } + + // Check to see if TrafficPolicies property is set + internal bool IsSetTrafficPolicies() + { + return this._trafficPolicies != null && (this._trafficPolicies.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/MessageBody.cs b/sdk/src/Services/MailManager/Generated/Model/MessageBody.cs new file mode 100644 index 000000000000..d3ee000d98cf --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/MessageBody.cs @@ -0,0 +1,96 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The textual body content of an email message. + /// + public partial class MessageBody + { + private string _html; + private bool? _messageMalformed; + private string _text; + + /// + /// Gets and sets the property Html. + /// + /// The HTML body content of the message. + /// + /// + public string Html + { + get { return this._html; } + set { this._html = value; } + } + + // Check to see if Html property is set + internal bool IsSetHtml() + { + return this._html != null; + } + + /// + /// Gets and sets the property MessageMalformed. + /// + /// A flag indicating if the email was malformed. + /// + /// + public bool MessageMalformed + { + get { return this._messageMalformed.GetValueOrDefault(); } + set { this._messageMalformed = value; } + } + + // Check to see if MessageMalformed property is set + internal bool IsSetMessageMalformed() + { + return this._messageMalformed.HasValue; + } + + /// + /// Gets and sets the property Text. + /// + /// The plain text body content of the message. + /// + /// + public string Text + { + get { return this._text; } + set { this._text = value; } + } + + // Check to see if Text property is set + internal bool IsSetText() + { + return this._text != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/NoAuthentication.cs b/sdk/src/Services/MailManager/Generated/Model/NoAuthentication.cs new file mode 100644 index 000000000000..7d7c7f64d1d3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/NoAuthentication.cs @@ -0,0 +1,40 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Explicitly indicate that the relay destination server does not require SMTP credential + /// authentication. + /// + public partial class NoAuthentication + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/PolicyCondition.cs b/sdk/src/Services/MailManager/Generated/Model/PolicyCondition.cs new file mode 100644 index 000000000000..18909618c646 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/PolicyCondition.cs @@ -0,0 +1,123 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The email traffic filtering conditions which are contained in a traffic policy resource. + /// + public partial class PolicyCondition + { + private IngressBooleanExpression _booleanExpression; + private IngressIpv4Expression _ipExpression; + private IngressStringExpression _stringExpression; + private IngressTlsProtocolExpression _tlsExpression; + + /// + /// Gets and sets the property BooleanExpression. + /// + /// This represents a boolean type condition matching on the incoming mail. It performs + /// the boolean operation configured in 'Operator' and evaluates the 'Protocol' object + /// against the 'Value'. + /// + /// + public IngressBooleanExpression BooleanExpression + { + get { return this._booleanExpression; } + set { this._booleanExpression = value; } + } + + // Check to see if BooleanExpression property is set + internal bool IsSetBooleanExpression() + { + return this._booleanExpression != null; + } + + /// + /// Gets and sets the property IpExpression. + /// + /// This represents an IP based condition matching on the incoming mail. It performs the + /// operation configured in 'Operator' and evaluates the 'Protocol' object against the + /// 'Value'. + /// + /// + public IngressIpv4Expression IpExpression + { + get { return this._ipExpression; } + set { this._ipExpression = value; } + } + + // Check to see if IpExpression property is set + internal bool IsSetIpExpression() + { + return this._ipExpression != null; + } + + /// + /// Gets and sets the property StringExpression. + /// + /// This represents a string based condition matching on the incoming mail. It performs + /// the string operation configured in 'Operator' and evaluates the 'Protocol' object + /// against the 'Value'. + /// + /// + public IngressStringExpression StringExpression + { + get { return this._stringExpression; } + set { this._stringExpression = value; } + } + + // Check to see if StringExpression property is set + internal bool IsSetStringExpression() + { + return this._stringExpression != null; + } + + /// + /// Gets and sets the property TlsExpression. + /// + /// This represents a TLS based condition matching on the incoming mail. It performs the + /// operation configured in 'Operator' and evaluates the 'Protocol' object against the + /// 'Value'. + /// + /// + public IngressTlsProtocolExpression TlsExpression + { + get { return this._tlsExpression; } + set { this._tlsExpression = value; } + } + + // Check to see if TlsExpression property is set + internal bool IsSetTlsExpression() + { + return this._tlsExpression != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/PolicyStatement.cs b/sdk/src/Services/MailManager/Generated/Model/PolicyStatement.cs new file mode 100644 index 000000000000..bf65dc6e7507 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/PolicyStatement.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure containing traffic policy conditions and actions. + /// + public partial class PolicyStatement + { + private AcceptAction _action; + private List _conditions = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Action. + /// + /// The action that informs a traffic policy resource to either allow or block the email + /// if it matches a condition in the policy statement. + /// + /// + [AWSProperty(Required=true)] + public AcceptAction Action + { + get { return this._action; } + set { this._action = value; } + } + + // Check to see if Action property is set + internal bool IsSetAction() + { + return this._action != null; + } + + /// + /// Gets and sets the property Conditions. + /// + /// The list of conditions to apply to incoming messages for filtering email traffic. + /// + /// + [AWSProperty(Required=true, Min=1)] + public List Conditions + { + get { return this._conditions; } + set { this._conditions = value; } + } + + // Check to see if Conditions property is set + internal bool IsSetConditions() + { + return this._conditions != null && (this._conditions.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Relay.cs b/sdk/src/Services/MailManager/Generated/Model/Relay.cs new file mode 100644 index 000000000000..5ad3224b5f40 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Relay.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The relay resource that can be used as a rule to relay receiving emails to the destination + /// relay server. + /// + public partial class Relay + { + private DateTime? _lastModifiedTimestamp; + private string _relayId; + private string _relayName; + + /// + /// Gets and sets the property LastModifiedTimestamp. + /// + /// The timestamp of when the relay was last modified. + /// + /// + public DateTime LastModifiedTimestamp + { + get { return this._lastModifiedTimestamp.GetValueOrDefault(); } + set { this._lastModifiedTimestamp = value; } + } + + // Check to see if LastModifiedTimestamp property is set + internal bool IsSetLastModifiedTimestamp() + { + return this._lastModifiedTimestamp.HasValue; + } + + /// + /// Gets and sets the property RelayId. + /// + /// The unique relay identifier. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RelayId + { + get { return this._relayId; } + set { this._relayId = value; } + } + + // Check to see if RelayId property is set + internal bool IsSetRelayId() + { + return this._relayId != null; + } + + /// + /// Gets and sets the property RelayName. + /// + /// The unique relay name. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RelayName + { + get { return this._relayName; } + set { this._relayName = value; } + } + + // Check to see if RelayName property is set + internal bool IsSetRelayName() + { + return this._relayName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RelayAction.cs b/sdk/src/Services/MailManager/Generated/Model/RelayAction.cs new file mode 100644 index 000000000000..f670dc6fbec1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RelayAction.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The action relays the email via SMTP to another specific SMTP server. + /// + public partial class RelayAction + { + private ActionFailurePolicy _actionFailurePolicy; + private MailFrom _mailFrom; + private string _relay; + + /// + /// Gets and sets the property ActionFailurePolicy. + /// + /// A policy that states what to do in the case of failure. The action will fail if there + /// are configuration errors. For example, the specified relay has been deleted. + /// + /// + public ActionFailurePolicy ActionFailurePolicy + { + get { return this._actionFailurePolicy; } + set { this._actionFailurePolicy = value; } + } + + // Check to see if ActionFailurePolicy property is set + internal bool IsSetActionFailurePolicy() + { + return this._actionFailurePolicy != null; + } + + /// + /// Gets and sets the property MailFrom. + /// + /// This action specifies whether to preserve or replace original mail from address while + /// relaying received emails to a destination server. + /// + /// + public MailFrom MailFrom + { + get { return this._mailFrom; } + set { this._mailFrom = value; } + } + + // Check to see if MailFrom property is set + internal bool IsSetMailFrom() + { + return this._mailFrom != null; + } + + /// + /// Gets and sets the property Relay. + /// + /// The identifier of the relay resource to be used when relaying an email. + /// + /// + [AWSProperty(Required=true, Min=1, Max=2048)] + public string Relay + { + get { return this._relay; } + set { this._relay = value; } + } + + // Check to see if Relay property is set + internal bool IsSetRelay() + { + return this._relay != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RelayAuthentication.cs b/sdk/src/Services/MailManager/Generated/Model/RelayAuthentication.cs new file mode 100644 index 000000000000..1b998eb48f10 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RelayAuthentication.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Authentication for the relay destination server—specify the secretARN where the SMTP + /// credentials are stored, or specify an empty NoAuthentication structure if the relay + /// destination server does not require SMTP credential authentication. + /// + public partial class RelayAuthentication + { + private NoAuthentication _noAuthentication; + private string _secretArn; + + /// + /// Gets and sets the property NoAuthentication. + /// + /// Keep an empty structure if the relay destination server does not require SMTP credential + /// authentication. + /// + /// + public NoAuthentication NoAuthentication + { + get { return this._noAuthentication; } + set { this._noAuthentication = value; } + } + + // Check to see if NoAuthentication property is set + internal bool IsSetNoAuthentication() + { + return this._noAuthentication != null; + } + + /// + /// Gets and sets the property SecretArn. + /// + /// The ARN of the secret created in secrets manager where the relay server's SMTP credentials + /// are stored. + /// + /// + public string SecretArn + { + get { return this._secretArn; } + set { this._secretArn = value; } + } + + // Check to see if SecretArn property is set + internal bool IsSetSecretArn() + { + return this._secretArn != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ReplaceRecipientAction.cs b/sdk/src/Services/MailManager/Generated/Model/ReplaceRecipientAction.cs new file mode 100644 index 000000000000..693610561b01 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ReplaceRecipientAction.cs @@ -0,0 +1,62 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This action replaces the email envelope recipients with the given list of recipients. + /// If the condition of this action applies only to a subset of recipients, only those + /// recipients are replaced with the recipients specified in the action. The message contents + /// and headers are unaffected by this action, only the envelope recipients are updated. + /// + public partial class ReplaceRecipientAction + { + private List _replaceWith = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property ReplaceWith. + /// + /// This action specifies the replacement recipient email addresses to insert. + /// + /// + [AWSProperty(Min=1, Max=100)] + public List ReplaceWith + { + get { return this._replaceWith; } + set { this._replaceWith = value; } + } + + // Check to see if ReplaceWith property is set + internal bool IsSetReplaceWith() + { + return this._replaceWith != null && (this._replaceWith.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ResourceNotFoundException.cs b/sdk/src/Services/MailManager/Generated/Model/ResourceNotFoundException.cs new file mode 100644 index 000000000000..0b444ea5cb08 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ResourceNotFoundException.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Occurs when a requested resource is not found. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ResourceNotFoundException : AmazonMailManagerException + { + + /// + /// Constructs a new ResourceNotFoundException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ResourceNotFoundException(string message) + : base(message) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + /// + public ResourceNotFoundException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + public ResourceNotFoundException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + /// + /// + /// + /// + /// + public ResourceNotFoundException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + /// + /// + /// + /// + public ResourceNotFoundException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ResourceNotFoundException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Row.cs b/sdk/src/Services/MailManager/Generated/Model/Row.cs new file mode 100644 index 000000000000..bf59d73a27be --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Row.cs @@ -0,0 +1,305 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A result row containing metadata for an archived email message. + /// + public partial class Row + { + private string _archivedMessageId; + private string _cc; + private string _date; + private string _from; + private bool? _hasAttachments; + private string _inReplyTo; + private string _messageId; + private List _receivedHeaders = AWSConfigs.InitializeCollections ? new List() : null; + private DateTime? _receivedTimestamp; + private string _subject; + private string _to; + private string _xMailer; + private string _xOriginalMailer; + private string _xPriority; + + /// + /// Gets and sets the property ArchivedMessageId. + /// + /// The unique identifier of the archived message. + /// + /// + public string ArchivedMessageId + { + get { return this._archivedMessageId; } + set { this._archivedMessageId = value; } + } + + // Check to see if ArchivedMessageId property is set + internal bool IsSetArchivedMessageId() + { + return this._archivedMessageId != null; + } + + /// + /// Gets and sets the property Cc. + /// + /// The email addresses in the CC header. + /// + /// + public string Cc + { + get { return this._cc; } + set { this._cc = value; } + } + + // Check to see if Cc property is set + internal bool IsSetCc() + { + return this._cc != null; + } + + /// + /// Gets and sets the property Date. + /// + /// The date the email was sent. + /// + /// + public string Date + { + get { return this._date; } + set { this._date = value; } + } + + // Check to see if Date property is set + internal bool IsSetDate() + { + return this._date != null; + } + + /// + /// Gets and sets the property From. + /// + /// The email address of the sender. + /// + /// + public string From + { + get { return this._from; } + set { this._from = value; } + } + + // Check to see if From property is set + internal bool IsSetFrom() + { + return this._from != null; + } + + /// + /// Gets and sets the property HasAttachments. + /// + /// A flag indicating if the email has attachments. + /// + /// + public bool HasAttachments + { + get { return this._hasAttachments.GetValueOrDefault(); } + set { this._hasAttachments = value; } + } + + // Check to see if HasAttachments property is set + internal bool IsSetHasAttachments() + { + return this._hasAttachments.HasValue; + } + + /// + /// Gets and sets the property InReplyTo. + /// + /// The email message ID this is a reply to. + /// + /// + public string InReplyTo + { + get { return this._inReplyTo; } + set { this._inReplyTo = value; } + } + + // Check to see if InReplyTo property is set + internal bool IsSetInReplyTo() + { + return this._inReplyTo != null; + } + + /// + /// Gets and sets the property MessageId. + /// + /// The unique message ID of the email. + /// + /// + public string MessageId + { + get { return this._messageId; } + set { this._messageId = value; } + } + + // Check to see if MessageId property is set + internal bool IsSetMessageId() + { + return this._messageId != null; + } + + /// + /// Gets and sets the property ReceivedHeaders. + /// + /// The received headers from the email delivery path. + /// + /// + public List ReceivedHeaders + { + get { return this._receivedHeaders; } + set { this._receivedHeaders = value; } + } + + // Check to see if ReceivedHeaders property is set + internal bool IsSetReceivedHeaders() + { + return this._receivedHeaders != null && (this._receivedHeaders.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property ReceivedTimestamp. + /// + /// The timestamp of when the email was received. + /// + /// + public DateTime ReceivedTimestamp + { + get { return this._receivedTimestamp.GetValueOrDefault(); } + set { this._receivedTimestamp = value; } + } + + // Check to see if ReceivedTimestamp property is set + internal bool IsSetReceivedTimestamp() + { + return this._receivedTimestamp.HasValue; + } + + /// + /// Gets and sets the property Subject. + /// + /// The subject header value of the email. + /// + /// + public string Subject + { + get { return this._subject; } + set { this._subject = value; } + } + + // Check to see if Subject property is set + internal bool IsSetSubject() + { + return this._subject != null; + } + + /// + /// Gets and sets the property To. + /// + /// The email addresses in the To header. + /// + /// + public string To + { + get { return this._to; } + set { this._to = value; } + } + + // Check to see if To property is set + internal bool IsSetTo() + { + return this._to != null; + } + + /// + /// Gets and sets the property XMailer. + /// + /// The user agent that sent the email. + /// + /// + public string XMailer + { + get { return this._xMailer; } + set { this._xMailer = value; } + } + + // Check to see if XMailer property is set + internal bool IsSetXMailer() + { + return this._xMailer != null; + } + + /// + /// Gets and sets the property XOriginalMailer. + /// + /// The original user agent that sent the email. + /// + /// + public string XOriginalMailer + { + get { return this._xOriginalMailer; } + set { this._xOriginalMailer = value; } + } + + // Check to see if XOriginalMailer property is set + internal bool IsSetXOriginalMailer() + { + return this._xOriginalMailer != null; + } + + /// + /// Gets and sets the property XPriority. + /// + /// The priority level of the email. + /// + /// + public string XPriority + { + get { return this._xPriority; } + set { this._xPriority = value; } + } + + // Check to see if XPriority property is set + internal bool IsSetXPriority() + { + return this._xPriority != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Rule.cs b/sdk/src/Services/MailManager/Generated/Model/Rule.cs new file mode 100644 index 000000000000..64e741690e9b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Rule.cs @@ -0,0 +1,129 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A rule contains conditions, "unless conditions" and actions. For each envelope recipient + /// of an email, if all conditions match and none of the "unless conditions" match, then + /// all of the actions are executed sequentially. If no conditions are provided, the rule + /// always applies and the actions are implicitly executed. If only "unless conditions" + /// are provided, the rule applies if the email does not match the evaluation of the "unless + /// conditions". + /// + public partial class Rule + { + private List _actions = AWSConfigs.InitializeCollections ? new List() : null; + private List _conditions = AWSConfigs.InitializeCollections ? new List() : null; + private string _name; + private List _unless = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Actions. + /// + /// The list of actions to execute when the conditions match the incoming email, and none + /// of the "unless conditions" match. + /// + /// + [AWSProperty(Required=true, Min=1, Max=10)] + public List Actions + { + get { return this._actions; } + set { this._actions = value; } + } + + // Check to see if Actions property is set + internal bool IsSetActions() + { + return this._actions != null && (this._actions.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property Conditions. + /// + /// The conditions of this rule. All conditions must match the email for the actions to + /// be executed. An empty list of conditions means that all emails match, but are still + /// subject to any "unless conditions" + /// + /// + [AWSProperty(Min=0, Max=10)] + public List Conditions + { + get { return this._conditions; } + set { this._conditions = value; } + } + + // Check to see if Conditions property is set + internal bool IsSetConditions() + { + return this._conditions != null && (this._conditions.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property Name. + /// + /// The user-friendly name of the rule. + /// + /// + [AWSProperty(Min=1, Max=32)] + public string Name + { + get { return this._name; } + set { this._name = value; } + } + + // Check to see if Name property is set + internal bool IsSetName() + { + return this._name != null; + } + + /// + /// Gets and sets the property Unless. + /// + /// The "unless conditions" of this rule. None of the conditions can match the email for + /// the actions to be executed. If any of these conditions do match the email, then the + /// actions are not executed. + /// + /// + [AWSProperty(Min=0, Max=10)] + public List Unless + { + get { return this._unless; } + set { this._unless = value; } + } + + // Check to see if Unless property is set + internal bool IsSetUnless() + { + return this._unless != null && (this._unless.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleAction.cs b/sdk/src/Services/MailManager/Generated/Model/RuleAction.cs new file mode 100644 index 000000000000..8c98acf8fe42 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleAction.cs @@ -0,0 +1,191 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The action for a rule to take. Only one of the contained actions can be set. + /// + public partial class RuleAction + { + private AddHeaderAction _addHeader; + private ArchiveAction _archive; + private DeliverToMailboxAction _deliverToMailbox; + private DropAction _drop; + private RelayAction _relay; + private ReplaceRecipientAction _replaceRecipient; + private SendAction _send; + private S3Action _writeToS3; + + /// + /// Gets and sets the property AddHeader. + /// + /// This action adds a header. This can be used to add arbitrary email headers. + /// + /// + public AddHeaderAction AddHeader + { + get { return this._addHeader; } + set { this._addHeader = value; } + } + + // Check to see if AddHeader property is set + internal bool IsSetAddHeader() + { + return this._addHeader != null; + } + + /// + /// Gets and sets the property Archive. + /// + /// This action archives the email. This can be used to deliver an email to an archive. + /// + /// + public ArchiveAction Archive + { + get { return this._archive; } + set { this._archive = value; } + } + + // Check to see if Archive property is set + internal bool IsSetArchive() + { + return this._archive != null; + } + + /// + /// Gets and sets the property DeliverToMailbox. + /// + /// This action delivers an email to a WorkMail mailbox. + /// + /// + public DeliverToMailboxAction DeliverToMailbox + { + get { return this._deliverToMailbox; } + set { this._deliverToMailbox = value; } + } + + // Check to see if DeliverToMailbox property is set + internal bool IsSetDeliverToMailbox() + { + return this._deliverToMailbox != null; + } + + /// + /// Gets and sets the property Drop. + /// + /// This action terminates the evaluation of rules in the rule set. + /// + /// + public DropAction Drop + { + get { return this._drop; } + set { this._drop = value; } + } + + // Check to see if Drop property is set + internal bool IsSetDrop() + { + return this._drop != null; + } + + /// + /// Gets and sets the property Relay. + /// + /// This action relays the email to another SMTP server. + /// + /// + public RelayAction Relay + { + get { return this._relay; } + set { this._relay = value; } + } + + // Check to see if Relay property is set + internal bool IsSetRelay() + { + return this._relay != null; + } + + /// + /// Gets and sets the property ReplaceRecipient. + /// + /// The action replaces certain or all recipients with a different set of recipients. + /// + /// + public ReplaceRecipientAction ReplaceRecipient + { + get { return this._replaceRecipient; } + set { this._replaceRecipient = value; } + } + + // Check to see if ReplaceRecipient property is set + internal bool IsSetReplaceRecipient() + { + return this._replaceRecipient != null; + } + + /// + /// Gets and sets the property Send. + /// + /// This action sends the email to the internet. + /// + /// + public SendAction Send + { + get { return this._send; } + set { this._send = value; } + } + + // Check to see if Send property is set + internal bool IsSetSend() + { + return this._send != null; + } + + /// + /// Gets and sets the property WriteToS3. + /// + /// This action writes the MIME content of the email to an S3 bucket. + /// + /// + public S3Action WriteToS3 + { + get { return this._writeToS3; } + set { this._writeToS3 = value; } + } + + // Check to see if WriteToS3 property is set + internal bool IsSetWriteToS3() + { + return this._writeToS3 != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleBooleanExpression.cs b/sdk/src/Services/MailManager/Generated/Model/RuleBooleanExpression.cs new file mode 100644 index 000000000000..c3e36c185f79 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleBooleanExpression.cs @@ -0,0 +1,79 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A boolean expression to be used in a rule condition. + /// + public partial class RuleBooleanExpression + { + private RuleBooleanToEvaluate _evaluate; + private RuleBooleanOperator _operator; + + /// + /// Gets and sets the property Evaluate. + /// + /// The operand on which to perform a boolean condition operation. + /// + /// + [AWSProperty(Required=true)] + public RuleBooleanToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for a boolean condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleBooleanOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleBooleanToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/RuleBooleanToEvaluate.cs new file mode 100644 index 000000000000..4da18db2da16 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleBooleanToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The union type representing the allowed types of operands for a boolean condition. + /// + public partial class RuleBooleanToEvaluate + { + private RuleBooleanEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The boolean type representing the allowed attribute types for an email. + /// + /// + public RuleBooleanEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleCondition.cs b/sdk/src/Services/MailManager/Generated/Model/RuleCondition.cs new file mode 100644 index 000000000000..04928c621f5c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleCondition.cs @@ -0,0 +1,154 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The conditional expression used to evaluate an email for determining if a rule action + /// should be taken. + /// + public partial class RuleCondition + { + private RuleBooleanExpression _booleanExpression; + private RuleDmarcExpression _dmarcExpression; + private RuleIpExpression _ipExpression; + private RuleNumberExpression _numberExpression; + private RuleStringExpression _stringExpression; + private RuleVerdictExpression _verdictExpression; + + /// + /// Gets and sets the property BooleanExpression. + /// + /// The condition applies to a boolean expression passed in this field. + /// + /// + public RuleBooleanExpression BooleanExpression + { + get { return this._booleanExpression; } + set { this._booleanExpression = value; } + } + + // Check to see if BooleanExpression property is set + internal bool IsSetBooleanExpression() + { + return this._booleanExpression != null; + } + + /// + /// Gets and sets the property DmarcExpression. + /// + /// The condition applies to a DMARC policy expression passed in this field. + /// + /// + public RuleDmarcExpression DmarcExpression + { + get { return this._dmarcExpression; } + set { this._dmarcExpression = value; } + } + + // Check to see if DmarcExpression property is set + internal bool IsSetDmarcExpression() + { + return this._dmarcExpression != null; + } + + /// + /// Gets and sets the property IpExpression. + /// + /// The condition applies to an IP address expression passed in this field. + /// + /// + public RuleIpExpression IpExpression + { + get { return this._ipExpression; } + set { this._ipExpression = value; } + } + + // Check to see if IpExpression property is set + internal bool IsSetIpExpression() + { + return this._ipExpression != null; + } + + /// + /// Gets and sets the property NumberExpression. + /// + /// The condition applies to a number expression passed in this field. + /// + /// + public RuleNumberExpression NumberExpression + { + get { return this._numberExpression; } + set { this._numberExpression = value; } + } + + // Check to see if NumberExpression property is set + internal bool IsSetNumberExpression() + { + return this._numberExpression != null; + } + + /// + /// Gets and sets the property StringExpression. + /// + /// The condition applies to a string expression passed in this field. + /// + /// + public RuleStringExpression StringExpression + { + get { return this._stringExpression; } + set { this._stringExpression = value; } + } + + // Check to see if StringExpression property is set + internal bool IsSetStringExpression() + { + return this._stringExpression != null; + } + + /// + /// Gets and sets the property VerdictExpression. + /// + /// The condition applies to a verdict expression passed in this field. + /// + /// + public RuleVerdictExpression VerdictExpression + { + get { return this._verdictExpression; } + set { this._verdictExpression = value; } + } + + // Check to see if VerdictExpression property is set + internal bool IsSetVerdictExpression() + { + return this._verdictExpression != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleDmarcExpression.cs b/sdk/src/Services/MailManager/Generated/Model/RuleDmarcExpression.cs new file mode 100644 index 000000000000..8a970d5b6ca8 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleDmarcExpression.cs @@ -0,0 +1,84 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A DMARC policy expression. The condition matches if the given DMARC policy matches + /// that of the incoming email. + /// + public partial class RuleDmarcExpression + { + private RuleDmarcOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Operator. + /// + /// The operator to apply to the DMARC policy of the incoming email. + /// + /// + [AWSProperty(Required=true)] + public RuleDmarcOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The values to use for the given DMARC policy operator. For the operator EQUALS, if + /// multiple values are given, they are evaluated as an OR. That is, if any of the given + /// values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple + /// values are given, they are evaluated as an AND. That is, only if the email's DMARC + /// policy is not equal to any of the given values, then the condition is deemed to match. + /// + /// + [AWSProperty(Required=true, Min=1, Max=10)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleIpExpression.cs b/sdk/src/Services/MailManager/Generated/Model/RuleIpExpression.cs new file mode 100644 index 000000000000..367b7acd410f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleIpExpression.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// An IP address expression matching certain IP addresses within a given range of IP + /// addresses. + /// + public partial class RuleIpExpression + { + private RuleIpToEvaluate _evaluate; + private RuleIpOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Evaluate. + /// + /// The IP address to evaluate in this condition. + /// + /// + [AWSProperty(Required=true)] + public RuleIpToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The operator to evaluate the IP address. + /// + /// + [AWSProperty(Required=true)] + public RuleIpOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's + /// IP address. For the operator CIDR_MATCHES, if multiple values are given, they are + /// evaluated as an OR. That is, if the IP address is contained within any of the given + /// CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR + /// ranges are given, the condition is deemed to match if the IP address is not contained + /// in any of the given CIDR ranges. + /// + /// + [AWSProperty(Required=true, Min=1, Max=10)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleIpToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/RuleIpToEvaluate.cs new file mode 100644 index 000000000000..22ff29fd6b3a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleIpToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The IP address to evaluate for this condition. + /// + public partial class RuleIpToEvaluate + { + private RuleIpEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The attribute of the email to evaluate. + /// + /// + public RuleIpEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleNumberExpression.cs b/sdk/src/Services/MailManager/Generated/Model/RuleNumberExpression.cs new file mode 100644 index 000000000000..40afa76ac770 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleNumberExpression.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A number expression to match numeric conditions with integers from the incoming email. + /// + public partial class RuleNumberExpression + { + private RuleNumberToEvaluate _evaluate; + private RuleNumberOperator _operator; + private double? _value; + + /// + /// Gets and sets the property Evaluate. + /// + /// The number to evaluate in a numeric condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleNumberToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The operator for a numeric condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleNumberOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Value. + /// + /// The value to evaluate in a numeric condition expression. + /// + /// + [AWSProperty(Required=true)] + public double Value + { + get { return this._value.GetValueOrDefault(); } + set { this._value = value; } + } + + // Check to see if Value property is set + internal bool IsSetValue() + { + return this._value.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleNumberToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/RuleNumberToEvaluate.cs new file mode 100644 index 000000000000..d709327a058b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleNumberToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The number to evaluate in a numeric condition expression. + /// + public partial class RuleNumberToEvaluate + { + private RuleNumberEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// An email attribute that is used as the number to evaluate. + /// + /// + public RuleNumberEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleSet.cs b/sdk/src/Services/MailManager/Generated/Model/RuleSet.cs new file mode 100644 index 000000000000..43fb2dce1bf6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleSet.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A rule set contains a list of rules that are evaluated in order. Each rule is evaluated + /// sequentially for each email. + /// + public partial class RuleSet + { + private DateTime? _lastModificationDate; + private string _ruleSetId; + private string _ruleSetName; + + /// + /// Gets and sets the property LastModificationDate. + /// + /// The last modification date of the rule set. + /// + /// + public DateTime LastModificationDate + { + get { return this._lastModificationDate.GetValueOrDefault(); } + set { this._lastModificationDate = value; } + } + + // Check to see if LastModificationDate property is set + internal bool IsSetLastModificationDate() + { + return this._lastModificationDate.HasValue; + } + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of the rule set. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + /// + /// Gets and sets the property RuleSetName. + /// + /// A user-friendly name for the rule set. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RuleSetName + { + get { return this._ruleSetName; } + set { this._ruleSetName = value; } + } + + // Check to see if RuleSetName property is set + internal bool IsSetRuleSetName() + { + return this._ruleSetName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleStringExpression.cs b/sdk/src/Services/MailManager/Generated/Model/RuleStringExpression.cs new file mode 100644 index 000000000000..eb6bf06436ec --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleStringExpression.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A string expression is evaluated against strings or substrings of the email. + /// + public partial class RuleStringExpression + { + private RuleStringToEvaluate _evaluate; + private RuleStringOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Evaluate. + /// + /// The string to evaluate in a string condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleStringToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for a string condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleStringOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The string(s) to be evaluated in a string condition expression. For all operators, + /// except for NOT_EQUALS, if multiple values are given, the values are processed as an + /// OR. That is, if any of the values match the email's string using the given operator, + /// the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed + /// to match if none of the given strings match the email's string. + /// + /// + [AWSProperty(Required=true, Min=1, Max=10)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleStringToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/RuleStringToEvaluate.cs new file mode 100644 index 000000000000..e6cccb83899d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleStringToEvaluate.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The string to evaluate in a string condition expression. + /// + public partial class RuleStringToEvaluate + { + private RuleStringEmailAttribute _attribute; + + /// + /// Gets and sets the property Attribute. + /// + /// The email attribute to evaluate in a string condition expression. + /// + /// + public RuleStringEmailAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleVerdictExpression.cs b/sdk/src/Services/MailManager/Generated/Model/RuleVerdictExpression.cs new file mode 100644 index 000000000000..edd32b5ec54e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleVerdictExpression.cs @@ -0,0 +1,103 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A verdict expression is evaluated against verdicts of the email. + /// + public partial class RuleVerdictExpression + { + private RuleVerdictToEvaluate _evaluate; + private RuleVerdictOperator _operator; + private List _values = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property Evaluate. + /// + /// The verdict to evaluate in a verdict condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleVerdictToEvaluate Evaluate + { + get { return this._evaluate; } + set { this._evaluate = value; } + } + + // Check to see if Evaluate property is set + internal bool IsSetEvaluate() + { + return this._evaluate != null; + } + + /// + /// Gets and sets the property Operator. + /// + /// The matching operator for a verdict condition expression. + /// + /// + [AWSProperty(Required=true)] + public RuleVerdictOperator Operator + { + get { return this._operator; } + set { this._operator = value; } + } + + // Check to see if Operator property is set + internal bool IsSetOperator() + { + return this._operator != null; + } + + /// + /// Gets and sets the property Values. + /// + /// The values to match with the email's verdict using the given operator. For the EQUALS + /// operator, if multiple values are given, the condition is deemed to match if any of + /// the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple + /// values are given, the condition is deemed to match of none of the given verdicts match + /// the verdict of the email. + /// + /// + [AWSProperty(Required=true, Min=1, Max=10)] + public List Values + { + get { return this._values; } + set { this._values = value; } + } + + // Check to see if Values property is set + internal bool IsSetValues() + { + return this._values != null && (this._values.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/RuleVerdictToEvaluate.cs b/sdk/src/Services/MailManager/Generated/Model/RuleVerdictToEvaluate.cs new file mode 100644 index 000000000000..ebc7b2c3ec79 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/RuleVerdictToEvaluate.cs @@ -0,0 +1,77 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The verdict to evaluate in a verdict condition expression. + /// + public partial class RuleVerdictToEvaluate + { + private Analysis _analysis; + private RuleVerdictAttribute _attribute; + + /// + /// Gets and sets the property Analysis. + /// + /// The Add On ARN and its returned value to evaluate in a verdict condition expression. + /// + /// + public Analysis Analysis + { + get { return this._analysis; } + set { this._analysis = value; } + } + + // Check to see if Analysis property is set + internal bool IsSetAnalysis() + { + return this._analysis != null; + } + + /// + /// Gets and sets the property Attribute. + /// + /// The email verdict attribute to evaluate in a string verdict expression. + /// + /// + public RuleVerdictAttribute Attribute + { + get { return this._attribute; } + set { this._attribute = value; } + } + + // Check to see if Attribute property is set + internal bool IsSetAttribute() + { + return this._attribute != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/S3Action.cs b/sdk/src/Services/MailManager/Generated/Model/S3Action.cs new file mode 100644 index 000000000000..c6e9f9b4385d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/S3Action.cs @@ -0,0 +1,141 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Writes the MIME content of the email to an S3 bucket. + /// + public partial class S3Action + { + private ActionFailurePolicy _actionFailurePolicy; + private string _roleArn; + private string _s3Bucket; + private string _s3Prefix; + private string _s3SseKmsKeyId; + + /// + /// Gets and sets the property ActionFailurePolicy. + /// + /// A policy that states what to do in the case of failure. The action will fail if there + /// are configuration errors. For example, the specified the bucket has been deleted. + /// + /// + public ActionFailurePolicy ActionFailurePolicy + { + get { return this._actionFailurePolicy; } + set { this._actionFailurePolicy = value; } + } + + // Check to see if ActionFailurePolicy property is set + internal bool IsSetActionFailurePolicy() + { + return this._actionFailurePolicy != null; + } + + /// + /// Gets and sets the property RoleArn. + /// + /// The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role + /// must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for + /// the given bucket. + /// + /// + [AWSProperty(Required=true, Min=20, Max=2048)] + public string RoleArn + { + get { return this._roleArn; } + set { this._roleArn = value; } + } + + // Check to see if RoleArn property is set + internal bool IsSetRoleArn() + { + return this._roleArn != null; + } + + /// + /// Gets and sets the property S3Bucket. + /// + /// The bucket name of the S3 bucket to write to. + /// + /// + [AWSProperty(Required=true, Min=1, Max=62)] + public string S3Bucket + { + get { return this._s3Bucket; } + set { this._s3Bucket = value; } + } + + // Check to see if S3Bucket property is set + internal bool IsSetS3Bucket() + { + return this._s3Bucket != null; + } + + /// + /// Gets and sets the property S3Prefix. + /// + /// The S3 prefix to use for the write to the s3 bucket. + /// + /// + [AWSProperty(Min=1, Max=62)] + public string S3Prefix + { + get { return this._s3Prefix; } + set { this._s3Prefix = value; } + } + + // Check to see if S3Prefix property is set + internal bool IsSetS3Prefix() + { + return this._s3Prefix != null; + } + + /// + /// Gets and sets the property S3SseKmsKeyId. + /// + /// The KMS Key ID to use to encrypt the message in S3. + /// + /// + [AWSProperty(Min=20, Max=2048)] + public string S3SseKmsKeyId + { + get { return this._s3SseKmsKeyId; } + set { this._s3SseKmsKeyId = value; } + } + + // Check to see if S3SseKmsKeyId property is set + internal bool IsSetS3SseKmsKeyId() + { + return this._s3SseKmsKeyId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/S3ExportDestinationConfiguration.cs b/sdk/src/Services/MailManager/Generated/Model/S3ExportDestinationConfiguration.cs new file mode 100644 index 000000000000..875cc8c29620 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/S3ExportDestinationConfiguration.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The configuration for exporting email data to an Amazon S3 bucket. + /// + public partial class S3ExportDestinationConfiguration + { + private string _s3Location; + + /// + /// Gets and sets the property S3Location. + /// + /// The S3 location to deliver the exported email data. + /// + /// + public string S3Location + { + get { return this._s3Location; } + set { this._s3Location = value; } + } + + // Check to see if S3Location property is set + internal bool IsSetS3Location() + { + return this._s3Location != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/SearchStatus.cs b/sdk/src/Services/MailManager/Generated/Model/SearchStatus.cs new file mode 100644 index 000000000000..046cf95168b5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/SearchStatus.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The current status of an archive search job. + /// + public partial class SearchStatus + { + private DateTime? _completionTimestamp; + private string _errorMessage; + private SearchState _state; + private DateTime? _submissionTimestamp; + + /// + /// Gets and sets the property CompletionTimestamp. + /// + /// The timestamp of when the search completed (if finished). + /// + /// + public DateTime CompletionTimestamp + { + get { return this._completionTimestamp.GetValueOrDefault(); } + set { this._completionTimestamp = value; } + } + + // Check to see if CompletionTimestamp property is set + internal bool IsSetCompletionTimestamp() + { + return this._completionTimestamp.HasValue; + } + + /// + /// Gets and sets the property ErrorMessage. + /// + /// An error message if the search failed. + /// + /// + public string ErrorMessage + { + get { return this._errorMessage; } + set { this._errorMessage = value; } + } + + // Check to see if ErrorMessage property is set + internal bool IsSetErrorMessage() + { + return this._errorMessage != null; + } + + /// + /// Gets and sets the property State. + /// + /// The current state of the search job. + /// + /// + public SearchState State + { + get { return this._state; } + set { this._state = value; } + } + + // Check to see if State property is set + internal bool IsSetState() + { + return this._state != null; + } + + /// + /// Gets and sets the property SubmissionTimestamp. + /// + /// The timestamp of when the search was submitted. + /// + /// + public DateTime SubmissionTimestamp + { + get { return this._submissionTimestamp.GetValueOrDefault(); } + set { this._submissionTimestamp = value; } + } + + // Check to see if SubmissionTimestamp property is set + internal bool IsSetSubmissionTimestamp() + { + return this._submissionTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/SearchSummary.cs b/sdk/src/Services/MailManager/Generated/Model/SearchSummary.cs new file mode 100644 index 000000000000..5a74d28d0adf --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/SearchSummary.cs @@ -0,0 +1,78 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Summary details of an archive search job. + /// + public partial class SearchSummary + { + private string _searchId; + private SearchStatus _status; + + /// + /// Gets and sets the property SearchId. + /// + /// The unique identifier of the search job. + /// + /// + [AWSProperty(Min=1, Max=64)] + public string SearchId + { + get { return this._searchId; } + set { this._searchId = value; } + } + + // Check to see if SearchId property is set + internal bool IsSetSearchId() + { + return this._searchId != null; + } + + /// + /// Gets and sets the property Status. + /// + /// The current status of the search job. + /// + /// + public SearchStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/SendAction.cs b/sdk/src/Services/MailManager/Generated/Model/SendAction.cs new file mode 100644 index 000000000000..2a3e1cc9ae6c --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/SendAction.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Sends the email to the internet using the ses:SendRawEmail API. + /// + public partial class SendAction + { + private ActionFailurePolicy _actionFailurePolicy; + private string _roleArn; + + /// + /// Gets and sets the property ActionFailurePolicy. + /// + /// A policy that states what to do in the case of failure. The action will fail if there + /// are configuration errors. For example, the caller does not have the permissions to + /// call the sendRawEmail API. + /// + /// + public ActionFailurePolicy ActionFailurePolicy + { + get { return this._actionFailurePolicy; } + set { this._actionFailurePolicy = value; } + } + + // Check to see if ActionFailurePolicy property is set + internal bool IsSetActionFailurePolicy() + { + return this._actionFailurePolicy != null; + } + + /// + /// Gets and sets the property RoleArn. + /// + /// The Amazon Resource Name (ARN) of the role to use for this action. This role must + /// have access to the ses:SendRawEmail API. + /// + /// + [AWSProperty(Required=true, Min=20, Max=2048)] + public string RoleArn + { + get { return this._roleArn; } + set { this._roleArn = value; } + } + + // Check to see if RoleArn property is set + internal bool IsSetRoleArn() + { + return this._roleArn != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ServiceQuotaExceededException.cs b/sdk/src/Services/MailManager/Generated/Model/ServiceQuotaExceededException.cs new file mode 100644 index 000000000000..08c9304840e7 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ServiceQuotaExceededException.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ServiceQuotaExceededException : AmazonMailManagerException + { + + /// + /// Constructs a new ServiceQuotaExceededException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ServiceQuotaExceededException(string message) + : base(message) {} + + /// + /// Construct instance of ServiceQuotaExceededException + /// + /// + /// + public ServiceQuotaExceededException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ServiceQuotaExceededException + /// + /// + public ServiceQuotaExceededException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ServiceQuotaExceededException + /// + /// + /// + /// + /// + /// + /// + public ServiceQuotaExceededException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ServiceQuotaExceededException + /// + /// + /// + /// + /// + /// + public ServiceQuotaExceededException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ServiceQuotaExceededException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ServiceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StartArchiveExportRequest.cs b/sdk/src/Services/MailManager/Generated/Model/StartArchiveExportRequest.cs new file mode 100644 index 000000000000..ece82c343347 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StartArchiveExportRequest.cs @@ -0,0 +1,158 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the StartArchiveExport operation. + /// Initiates an export of emails from the specified archive. + /// + public partial class StartArchiveExportRequest : AmazonMailManagerRequest + { + private string _archiveId; + private ExportDestinationConfiguration _exportDestinationConfiguration; + private ArchiveFilters _filters; + private DateTime? _fromTimestamp; + private int? _maxResults; + private DateTime? _toTimestamp; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive to export emails from. + /// + /// + [AWSProperty(Required=true, Min=3, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property ExportDestinationConfiguration. + /// + /// Details on where to deliver the exported email data. + /// + /// + [AWSProperty(Required=true)] + public ExportDestinationConfiguration ExportDestinationConfiguration + { + get { return this._exportDestinationConfiguration; } + set { this._exportDestinationConfiguration = value; } + } + + // Check to see if ExportDestinationConfiguration property is set + internal bool IsSetExportDestinationConfiguration() + { + return this._exportDestinationConfiguration != null; + } + + /// + /// Gets and sets the property Filters. + /// + /// Criteria to filter which emails are included in the export. + /// + /// + public ArchiveFilters Filters + { + get { return this._filters; } + set { this._filters = value; } + } + + // Check to see if Filters property is set + internal bool IsSetFilters() + { + return this._filters != null; + } + + /// + /// Gets and sets the property FromTimestamp. + /// + /// The start of the timestamp range to include emails from. + /// + /// + [AWSProperty(Required=true)] + public DateTime FromTimestamp + { + get { return this._fromTimestamp.GetValueOrDefault(); } + set { this._fromTimestamp = value; } + } + + // Check to see if FromTimestamp property is set + internal bool IsSetFromTimestamp() + { + return this._fromTimestamp.HasValue; + } + + /// + /// Gets and sets the property MaxResults. + /// + /// The maximum number of email items to include in the export. + /// + /// + public int MaxResults + { + get { return this._maxResults.GetValueOrDefault(); } + set { this._maxResults = value; } + } + + // Check to see if MaxResults property is set + internal bool IsSetMaxResults() + { + return this._maxResults.HasValue; + } + + /// + /// Gets and sets the property ToTimestamp. + /// + /// The end of the timestamp range to include emails from. + /// + /// + [AWSProperty(Required=true)] + public DateTime ToTimestamp + { + get { return this._toTimestamp.GetValueOrDefault(); } + set { this._toTimestamp = value; } + } + + // Check to see if ToTimestamp property is set + internal bool IsSetToTimestamp() + { + return this._toTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StartArchiveExportResponse.cs b/sdk/src/Services/MailManager/Generated/Model/StartArchiveExportResponse.cs new file mode 100644 index 000000000000..84beada8e0c5 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StartArchiveExportResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response from initiating an archive export. + /// + public partial class StartArchiveExportResponse : AmazonWebServiceResponse + { + private string _exportId; + + /// + /// Gets and sets the property ExportId. + /// + /// The unique identifier for the initiated export job. + /// + /// + [AWSProperty(Min=1, Max=64)] + public string ExportId + { + get { return this._exportId; } + set { this._exportId = value; } + } + + // Check to see if ExportId property is set + internal bool IsSetExportId() + { + return this._exportId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchRequest.cs b/sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchRequest.cs new file mode 100644 index 000000000000..d02e5c43999a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchRequest.cs @@ -0,0 +1,139 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the StartArchiveSearch operation. + /// Initiates a search across emails in the specified archive. + /// + public partial class StartArchiveSearchRequest : AmazonMailManagerRequest + { + private string _archiveId; + private ArchiveFilters _filters; + private DateTime? _fromTimestamp; + private int? _maxResults; + private DateTime? _toTimestamp; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive to search emails in. + /// + /// + [AWSProperty(Required=true, Min=3, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property Filters. + /// + /// Criteria to filter which emails are included in the search results. + /// + /// + public ArchiveFilters Filters + { + get { return this._filters; } + set { this._filters = value; } + } + + // Check to see if Filters property is set + internal bool IsSetFilters() + { + return this._filters != null; + } + + /// + /// Gets and sets the property FromTimestamp. + /// + /// The start timestamp of the range to search emails from. + /// + /// + [AWSProperty(Required=true)] + public DateTime FromTimestamp + { + get { return this._fromTimestamp.GetValueOrDefault(); } + set { this._fromTimestamp = value; } + } + + // Check to see if FromTimestamp property is set + internal bool IsSetFromTimestamp() + { + return this._fromTimestamp.HasValue; + } + + /// + /// Gets and sets the property MaxResults. + /// + /// The maximum number of search results to return. + /// + /// + [AWSProperty(Required=true, Min=0, Max=1000)] + public int MaxResults + { + get { return this._maxResults.GetValueOrDefault(); } + set { this._maxResults = value; } + } + + // Check to see if MaxResults property is set + internal bool IsSetMaxResults() + { + return this._maxResults.HasValue; + } + + /// + /// Gets and sets the property ToTimestamp. + /// + /// The end timestamp of the range to search emails from. + /// + /// + [AWSProperty(Required=true)] + public DateTime ToTimestamp + { + get { return this._toTimestamp.GetValueOrDefault(); } + set { this._toTimestamp = value; } + } + + // Check to see if ToTimestamp property is set + internal bool IsSetToTimestamp() + { + return this._toTimestamp.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchResponse.cs b/sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchResponse.cs new file mode 100644 index 000000000000..fc82333ca938 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StartArchiveSearchResponse.cs @@ -0,0 +1,59 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response from initiating an archive search. + /// + public partial class StartArchiveSearchResponse : AmazonWebServiceResponse + { + private string _searchId; + + /// + /// Gets and sets the property SearchId. + /// + /// The unique identifier for the initiated search job. + /// + /// + [AWSProperty(Min=1, Max=64)] + public string SearchId + { + get { return this._searchId; } + set { this._searchId = value; } + } + + // Check to see if SearchId property is set + internal bool IsSetSearchId() + { + return this._searchId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StopArchiveExportRequest.cs b/sdk/src/Services/MailManager/Generated/Model/StopArchiveExportRequest.cs new file mode 100644 index 000000000000..6c5663391c81 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StopArchiveExportRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the StopArchiveExport operation. + /// Stops an in-progress export of emails from an archive. + /// + public partial class StopArchiveExportRequest : AmazonMailManagerRequest + { + private string _exportId; + + /// + /// Gets and sets the property ExportId. + /// + /// The identifier of the export job to stop. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string ExportId + { + get { return this._exportId; } + set { this._exportId = value; } + } + + // Check to see if ExportId property is set + internal bool IsSetExportId() + { + return this._exportId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StopArchiveExportResponse.cs b/sdk/src/Services/MailManager/Generated/Model/StopArchiveExportResponse.cs new file mode 100644 index 000000000000..372b93c921fb --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StopArchiveExportResponse.cs @@ -0,0 +1,44 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response indicating if the request to stop the export job succeeded. + /// + /// + /// + /// On success, returns an HTTP 200 status code. On failure, returns an error message. + /// + /// + public partial class StopArchiveExportResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchRequest.cs b/sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchRequest.cs new file mode 100644 index 000000000000..b4bc2526729d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the StopArchiveSearch operation. + /// Stops an in-progress archive search job. + /// + public partial class StopArchiveSearchRequest : AmazonMailManagerRequest + { + private string _searchId; + + /// + /// Gets and sets the property SearchId. + /// + /// The identifier of the search job to stop. + /// + /// + [AWSProperty(Required=true, Min=1, Max=64)] + public string SearchId + { + get { return this._searchId; } + set { this._searchId = value; } + } + + // Check to see if SearchId property is set + internal bool IsSetSearchId() + { + return this._searchId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchResponse.cs b/sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchResponse.cs new file mode 100644 index 000000000000..3773fb33195a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/StopArchiveSearchResponse.cs @@ -0,0 +1,44 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response indicating if the request to stop the search job succeeded. + /// + /// + /// + /// On success, returns an HTTP 200 status code. On failure, returns an error message. + /// + /// + public partial class StopArchiveSearchResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/Tag.cs b/sdk/src/Services/MailManager/Generated/Model/Tag.cs new file mode 100644 index 000000000000..3a5fae87f658 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/Tag.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// A key-value pair (the value is optional), that you can define and assign to Amazon + /// Web Services resources. + /// + public partial class Tag + { + private string _key; + private string _value; + + /// + /// Gets and sets the property Key. + /// + /// The key of the key-value tag. + /// + /// + [AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)] + public string Key + { + get { return this._key; } + set { this._key = value; } + } + + // Check to see if Key property is set + internal bool IsSetKey() + { + return this._key != null; + } + + /// + /// Gets and sets the property Value. + /// + /// The value of the key-value tag. + /// + /// + [AWSProperty(Required=true, Sensitive=true, Min=0, Max=256)] + public string Value + { + get { return this._value; } + set { this._value = value; } + } + + // Check to see if Value property is set + internal bool IsSetValue() + { + return this._value != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/TagResourceRequest.cs b/sdk/src/Services/MailManager/Generated/Model/TagResourceRequest.cs new file mode 100644 index 000000000000..106e51b5b46b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/TagResourceRequest.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the TagResource operation. + /// Adds one or more tags (keys and values) to a specified resource. + /// + public partial class TagResourceRequest : AmazonMailManagerRequest + { + private string _resourceArn; + private List _tags = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property ResourceArn. + /// + /// The Amazon Resource Name (ARN) of the resource that you want to tag. + /// + /// + [AWSProperty(Required=true, Min=20, Max=1011)] + public string ResourceArn + { + get { return this._resourceArn; } + set { this._resourceArn = value; } + } + + // Check to see if ResourceArn property is set + internal bool IsSetResourceArn() + { + return this._resourceArn != null; + } + + /// + /// Gets and sets the property Tags. + /// + /// The tags used to organize, track, or control access for the resource. For example, + /// { "tags": {"key1":"value1", "key2":"value2"} }. + /// + /// + [AWSProperty(Required=true, Min=0, Max=200)] + public List Tags + { + get { return this._tags; } + set { this._tags = value; } + } + + // Check to see if Tags property is set + internal bool IsSetTags() + { + return this._tags != null && (this._tags.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/TagResourceResponse.cs b/sdk/src/Services/MailManager/Generated/Model/TagResourceResponse.cs new file mode 100644 index 000000000000..4c611a8a4c0e --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/TagResourceResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the TagResource operation. + /// + public partial class TagResourceResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ThrottlingException.cs b/sdk/src/Services/MailManager/Generated/Model/ThrottlingException.cs new file mode 100644 index 000000000000..daebcbcabbad --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ThrottlingException.cs @@ -0,0 +1,126 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ThrottlingException : AmazonMailManagerException + { + + /// + /// Constructs a new ThrottlingException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ThrottlingException(string message) + : base(message) {} + + /// + /// Construct instance of ThrottlingException + /// + /// + /// + public ThrottlingException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ThrottlingException + /// + /// + public ThrottlingException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ThrottlingException + /// + /// + /// + /// + /// + /// + /// + public ThrottlingException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ThrottlingException + /// + /// + /// + /// + /// + /// + public ThrottlingException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ThrottlingException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/TrafficPolicy.cs b/sdk/src/Services/MailManager/Generated/Model/TrafficPolicy.cs new file mode 100644 index 000000000000..3f3a2885c0e4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/TrafficPolicy.cs @@ -0,0 +1,100 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The structure of a traffic policy resource which is a container for policy statements. + /// + public partial class TrafficPolicy + { + private AcceptAction _defaultAction; + private string _trafficPolicyId; + private string _trafficPolicyName; + + /// + /// Gets and sets the property DefaultAction. + /// + /// Default action instructs the traffic policy to either Allow or Deny (block) messages + /// that fall outside of (or not addressed by) the conditions of your policy statements + /// + /// + [AWSProperty(Required=true)] + public AcceptAction DefaultAction + { + get { return this._defaultAction; } + set { this._defaultAction = value; } + } + + // Check to see if DefaultAction property is set + internal bool IsSetDefaultAction() + { + return this._defaultAction != null; + } + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + /// + /// Gets and sets the property TrafficPolicyName. + /// + /// A user-friendly name of the traffic policy resource. + /// + /// + [AWSProperty(Required=true, Min=3, Max=63)] + public string TrafficPolicyName + { + get { return this._trafficPolicyName; } + set { this._trafficPolicyName = value; } + } + + // Check to see if TrafficPolicyName property is set + internal bool IsSetTrafficPolicyName() + { + return this._trafficPolicyName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UntagResourceRequest.cs b/sdk/src/Services/MailManager/Generated/Model/UntagResourceRequest.cs new file mode 100644 index 000000000000..72271262fbd4 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UntagResourceRequest.cs @@ -0,0 +1,81 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the UntagResource operation. + /// Remove one or more tags (keys and values) from a specified resource. + /// + public partial class UntagResourceRequest : AmazonMailManagerRequest + { + private string _resourceArn; + private List _tagKeys = AWSConfigs.InitializeCollections ? new List() : null; + + /// + /// Gets and sets the property ResourceArn. + /// + /// The Amazon Resource Name (ARN) of the resource that you want to untag. + /// + /// + [AWSProperty(Required=true, Min=20, Max=1011)] + public string ResourceArn + { + get { return this._resourceArn; } + set { this._resourceArn = value; } + } + + // Check to see if ResourceArn property is set + internal bool IsSetResourceArn() + { + return this._resourceArn != null; + } + + /// + /// Gets and sets the property TagKeys. + /// + /// The keys of the key-value pairs for the tag or tags you want to remove from the specified + /// resource. + /// + /// + [AWSProperty(Required=true, Min=0, Max=200)] + public List TagKeys + { + get { return this._tagKeys; } + set { this._tagKeys = value; } + } + + // Check to see if TagKeys property is set + internal bool IsSetTagKeys() + { + return this._tagKeys != null && (this._tagKeys.Count > 0 || !AWSConfigs.InitializeCollections); + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UntagResourceResponse.cs b/sdk/src/Services/MailManager/Generated/Model/UntagResourceResponse.cs new file mode 100644 index 000000000000..df63fc2ab300 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UntagResourceResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the UntagResource operation. + /// + public partial class UntagResourceResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateArchiveRequest.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateArchiveRequest.cs new file mode 100644 index 000000000000..a1f81392d202 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateArchiveRequest.cs @@ -0,0 +1,99 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the UpdateArchive operation. + /// Updates the attributes of an existing email archive. + /// + public partial class UpdateArchiveRequest : AmazonMailManagerRequest + { + private string _archiveId; + private string _archiveName; + private ArchiveRetention _retention; + + /// + /// Gets and sets the property ArchiveId. + /// + /// The identifier of the archive to update. + /// + /// + [AWSProperty(Required=true, Min=1, Max=66)] + public string ArchiveId + { + get { return this._archiveId; } + set { this._archiveId = value; } + } + + // Check to see if ArchiveId property is set + internal bool IsSetArchiveId() + { + return this._archiveId != null; + } + + /// + /// Gets and sets the property ArchiveName. + /// + /// A new, unique name for the archive. + /// + /// + [AWSProperty(Min=1, Max=64)] + public string ArchiveName + { + get { return this._archiveName; } + set { this._archiveName = value; } + } + + // Check to see if ArchiveName property is set + internal bool IsSetArchiveName() + { + return this._archiveName != null; + } + + /// + /// Gets and sets the property Retention. + /// + /// A new retention period for emails in the archive. + /// + /// + public ArchiveRetention Retention + { + get { return this._retention; } + set { this._retention = value; } + } + + // Check to see if Retention property is set + internal bool IsSetRetention() + { + return this._retention != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateArchiveResponse.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateArchiveResponse.cs new file mode 100644 index 000000000000..36925e0b72ea --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateArchiveResponse.cs @@ -0,0 +1,44 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The response indicating if the archive update succeeded or failed. + /// + /// + /// + /// On success, returns an HTTP 200 status code. On failure, returns an error message. + /// + /// + public partial class UpdateArchiveResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointRequest.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointRequest.cs new file mode 100644 index 000000000000..6c0db3f2997d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointRequest.cs @@ -0,0 +1,160 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the UpdateIngressPoint operation. + /// Update attributes of a provisioned ingress endpoint resource. + /// + public partial class UpdateIngressPointRequest : AmazonMailManagerRequest + { + private IngressPointConfiguration _ingressPointConfiguration; + private string _ingressPointId; + private string _ingressPointName; + private string _ruleSetId; + private IngressPointStatusToUpdate _statusToUpdate; + private string _trafficPolicyId; + + /// + /// Gets and sets the property IngressPointConfiguration. + /// + /// If you choose an Authenticated ingress endpoint, you must configure either an SMTP + /// password or a secret ARN. + /// + /// + public IngressPointConfiguration IngressPointConfiguration + { + get { return this._ingressPointConfiguration; } + set { this._ingressPointConfiguration = value; } + } + + // Check to see if IngressPointConfiguration property is set + internal bool IsSetIngressPointConfiguration() + { + return this._ingressPointConfiguration != null; + } + + /// + /// Gets and sets the property IngressPointId. + /// + /// The identifier for the ingress endpoint you want to update. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string IngressPointId + { + get { return this._ingressPointId; } + set { this._ingressPointId = value; } + } + + // Check to see if IngressPointId property is set + internal bool IsSetIngressPointId() + { + return this._ingressPointId != null; + } + + /// + /// Gets and sets the property IngressPointName. + /// + /// A user friendly name for the ingress endpoint resource. + /// + /// + [AWSProperty(Min=3, Max=63)] + public string IngressPointName + { + get { return this._ingressPointName; } + set { this._ingressPointName = value; } + } + + // Check to see if IngressPointName property is set + internal bool IsSetIngressPointName() + { + return this._ingressPointName != null; + } + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of an existing rule set that you attach to an ingress endpoint resource. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + /// + /// Gets and sets the property StatusToUpdate. + /// + /// The update status of an ingress endpoint. + /// + /// + public IngressPointStatusToUpdate StatusToUpdate + { + get { return this._statusToUpdate; } + set { this._statusToUpdate = value; } + } + + // Check to see if StatusToUpdate property is set + internal bool IsSetStatusToUpdate() + { + return this._statusToUpdate != null; + } + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of an existing traffic policy that you attach to an ingress endpoint + /// resource. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointResponse.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointResponse.cs new file mode 100644 index 000000000000..d7dac0a49e94 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateIngressPointResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the UpdateIngressPoint operation. + /// + public partial class UpdateIngressPointResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateRelayRequest.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateRelayRequest.cs new file mode 100644 index 000000000000..dac9f39cbcff --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateRelayRequest.cs @@ -0,0 +1,140 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the UpdateRelay operation. + /// Updates the attributes of an existing relay resource. + /// + public partial class UpdateRelayRequest : AmazonMailManagerRequest + { + private RelayAuthentication _authentication; + private string _relayId; + private string _relayName; + private string _serverName; + private int? _serverPort; + + /// + /// Gets and sets the property Authentication. + /// + /// Authentication for the relay destination server—specify the secretARN where the SMTP + /// credentials are stored. + /// + /// + public RelayAuthentication Authentication + { + get { return this._authentication; } + set { this._authentication = value; } + } + + // Check to see if Authentication property is set + internal bool IsSetAuthentication() + { + return this._authentication != null; + } + + /// + /// Gets and sets the property RelayId. + /// + /// The unique relay identifier. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RelayId + { + get { return this._relayId; } + set { this._relayId = value; } + } + + // Check to see if RelayId property is set + internal bool IsSetRelayId() + { + return this._relayId != null; + } + + /// + /// Gets and sets the property RelayName. + /// + /// The name of the relay resource. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RelayName + { + get { return this._relayName; } + set { this._relayName = value; } + } + + // Check to see if RelayName property is set + internal bool IsSetRelayName() + { + return this._relayName != null; + } + + /// + /// Gets and sets the property ServerName. + /// + /// The destination relay server address. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string ServerName + { + get { return this._serverName; } + set { this._serverName = value; } + } + + // Check to see if ServerName property is set + internal bool IsSetServerName() + { + return this._serverName != null; + } + + /// + /// Gets and sets the property ServerPort. + /// + /// The destination relay server port. + /// + /// + [AWSProperty(Min=1, Max=65535)] + public int ServerPort + { + get { return this._serverPort.GetValueOrDefault(); } + set { this._serverPort = value; } + } + + // Check to see if ServerPort property is set + internal bool IsSetServerPort() + { + return this._serverPort.HasValue; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateRelayResponse.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateRelayResponse.cs new file mode 100644 index 000000000000..4d9425ebb219 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateRelayResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the UpdateRelay operation. + /// + public partial class UpdateRelayResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetRequest.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetRequest.cs new file mode 100644 index 000000000000..bc5071c528c9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetRequest.cs @@ -0,0 +1,101 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the UpdateRuleSet operation. + /// >Update attributes of an already provisioned rule set. + /// + public partial class UpdateRuleSetRequest : AmazonMailManagerRequest + { + private List _rules = AWSConfigs.InitializeCollections ? new List() : null; + private string _ruleSetId; + private string _ruleSetName; + + /// + /// Gets and sets the property Rules. + /// + /// A new set of rules to replace the current rules of the rule set—these rules will override + /// all the rules of the rule set. + /// + /// + [AWSProperty(Min=0, Max=40)] + public List Rules + { + get { return this._rules; } + set { this._rules = value; } + } + + // Check to see if Rules property is set + internal bool IsSetRules() + { + return this._rules != null && (this._rules.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property RuleSetId. + /// + /// The identifier of a rule set you want to update. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string RuleSetId + { + get { return this._ruleSetId; } + set { this._ruleSetId = value; } + } + + // Check to see if RuleSetId property is set + internal bool IsSetRuleSetId() + { + return this._ruleSetId != null; + } + + /// + /// Gets and sets the property RuleSetName. + /// + /// A user-friendly name for the rule set resource. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string RuleSetName + { + get { return this._ruleSetName; } + set { this._ruleSetName = value; } + } + + // Check to see if RuleSetName property is set + internal bool IsSetRuleSetName() + { + return this._ruleSetName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetResponse.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetResponse.cs new file mode 100644 index 000000000000..e2098f5d3b54 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateRuleSetResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the UpdateRuleSet operation. + /// + public partial class UpdateRuleSetResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyRequest.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyRequest.cs new file mode 100644 index 000000000000..f988b6392974 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyRequest.cs @@ -0,0 +1,140 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// Container for the parameters to the UpdateTrafficPolicy operation. + /// Update attributes of an already provisioned traffic policy resource. + /// + public partial class UpdateTrafficPolicyRequest : AmazonMailManagerRequest + { + private AcceptAction _defaultAction; + private int? _maxMessageSizeBytes; + private List _policyStatements = AWSConfigs.InitializeCollections ? new List() : null; + private string _trafficPolicyId; + private string _trafficPolicyName; + + /// + /// Gets and sets the property DefaultAction. + /// + /// Default action instructs the traffic policy to either Allow or Deny (block) messages + /// that fall outside of (or not addressed by) the conditions of your policy statements + /// + /// + public AcceptAction DefaultAction + { + get { return this._defaultAction; } + set { this._defaultAction = value; } + } + + // Check to see if DefaultAction property is set + internal bool IsSetDefaultAction() + { + return this._defaultAction != null; + } + + /// + /// Gets and sets the property MaxMessageSizeBytes. + /// + /// The maximum message size in bytes of email which is allowed in by this traffic policy—anything + /// larger will be blocked. + /// + /// + [AWSProperty(Min=1)] + public int MaxMessageSizeBytes + { + get { return this._maxMessageSizeBytes.GetValueOrDefault(); } + set { this._maxMessageSizeBytes = value; } + } + + // Check to see if MaxMessageSizeBytes property is set + internal bool IsSetMaxMessageSizeBytes() + { + return this._maxMessageSizeBytes.HasValue; + } + + /// + /// Gets and sets the property PolicyStatements. + /// + /// The list of conditions to be updated for filtering email traffic. + /// + /// + public List PolicyStatements + { + get { return this._policyStatements; } + set { this._policyStatements = value; } + } + + // Check to see if PolicyStatements property is set + internal bool IsSetPolicyStatements() + { + return this._policyStatements != null && (this._policyStatements.Count > 0 || !AWSConfigs.InitializeCollections); + } + + /// + /// Gets and sets the property TrafficPolicyId. + /// + /// The identifier of the traffic policy that you want to update. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string TrafficPolicyId + { + get { return this._trafficPolicyId; } + set { this._trafficPolicyId = value; } + } + + // Check to see if TrafficPolicyId property is set + internal bool IsSetTrafficPolicyId() + { + return this._trafficPolicyId != null; + } + + /// + /// Gets and sets the property TrafficPolicyName. + /// + /// A user-friendly name for the traffic policy resource. + /// + /// + [AWSProperty(Min=3, Max=63)] + public string TrafficPolicyName + { + get { return this._trafficPolicyName; } + set { this._trafficPolicyName = value; } + } + + // Check to see if TrafficPolicyName property is set + internal bool IsSetTrafficPolicyName() + { + return this._trafficPolicyName != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyResponse.cs b/sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyResponse.cs new file mode 100644 index 000000000000..f310023dbaf9 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/UpdateTrafficPolicyResponse.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// This is the response object from the UpdateTrafficPolicy operation. + /// + public partial class UpdateTrafficPolicyResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/ValidationException.cs b/sdk/src/Services/MailManager/Generated/Model/ValidationException.cs new file mode 100644 index 000000000000..f93a9661c6c6 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/ValidationException.cs @@ -0,0 +1,125 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +#pragma warning disable CS0612,CS0618,CS1570 +namespace Amazon.MailManager.Model +{ + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ValidationException : AmazonMailManagerException + { + + /// + /// Constructs a new ValidationException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ValidationException(string message) + : base(message) {} + + /// + /// Construct instance of ValidationException + /// + /// + /// + public ValidationException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ValidationException + /// + /// + public ValidationException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ValidationException + /// + /// + /// + /// + /// + /// + /// + public ValidationException(string message, Exception innerException, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ValidationException + /// + /// + /// + /// + /// + /// + public ValidationException(string message, Amazon.Runtime.ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ValidationException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonInstancesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonInstancesPaginator.cs new file mode 100644 index 000000000000..f6796767f823 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonInstancesPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListAddonInstances operation + /// + public interface IListAddonInstancesPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the AddonInstances + /// + IPaginatedEnumerable AddonInstances { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonSubscriptionsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonSubscriptionsPaginator.cs new file mode 100644 index 000000000000..8475cc0a9371 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListAddonSubscriptionsPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListAddonSubscriptions operation + /// + public interface IListAddonSubscriptionsPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the AddonSubscriptions + /// + IPaginatedEnumerable AddonSubscriptions { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveExportsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveExportsPaginator.cs new file mode 100644 index 000000000000..2232ef9d3774 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveExportsPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListArchiveExports operation + /// + public interface IListArchiveExportsPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the Exports + /// + IPaginatedEnumerable Exports { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveSearchesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveSearchesPaginator.cs new file mode 100644 index 000000000000..122613a70238 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchiveSearchesPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListArchiveSearches operation + /// + public interface IListArchiveSearchesPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the Searches + /// + IPaginatedEnumerable Searches { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchivesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchivesPaginator.cs new file mode 100644 index 000000000000..d1ec3135b531 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListArchivesPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListArchives operation + /// + public interface IListArchivesPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the Archives + /// + IPaginatedEnumerable Archives { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListIngressPointsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListIngressPointsPaginator.cs new file mode 100644 index 000000000000..802020f5b511 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListIngressPointsPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListIngressPoints operation + /// + public interface IListIngressPointsPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the IngressPoints + /// + IPaginatedEnumerable IngressPoints { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRelaysPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRelaysPaginator.cs new file mode 100644 index 000000000000..b6165c49d626 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRelaysPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListRelays operation + /// + public interface IListRelaysPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the Relays + /// + IPaginatedEnumerable Relays { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRuleSetsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRuleSetsPaginator.cs new file mode 100644 index 000000000000..44267f6b77f3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListRuleSetsPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListRuleSets operation + /// + public interface IListRuleSetsPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the RuleSets + /// + IPaginatedEnumerable RuleSets { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListTrafficPoliciesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListTrafficPoliciesPaginator.cs new file mode 100644 index 000000000000..27aa5aff19b3 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IListTrafficPoliciesPaginator.cs @@ -0,0 +1,39 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginator for the ListTrafficPolicies operation + /// + public interface IListTrafficPoliciesPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the TrafficPolicies + /// + IPaginatedEnumerable TrafficPolicies { get; } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IMailManagerPaginatorFactory.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IMailManagerPaginatorFactory.cs new file mode 100644 index 000000000000..d6d4c3104015 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/IMailManagerPaginatorFactory.cs @@ -0,0 +1,74 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginators for the MailManager service + /// + public interface IMailManagerPaginatorFactory + { + + /// + /// Paginator for ListAddonInstances operation + /// + IListAddonInstancesPaginator ListAddonInstances(ListAddonInstancesRequest request); + + /// + /// Paginator for ListAddonSubscriptions operation + /// + IListAddonSubscriptionsPaginator ListAddonSubscriptions(ListAddonSubscriptionsRequest request); + + /// + /// Paginator for ListArchiveExports operation + /// + IListArchiveExportsPaginator ListArchiveExports(ListArchiveExportsRequest request); + + /// + /// Paginator for ListArchives operation + /// + IListArchivesPaginator ListArchives(ListArchivesRequest request); + + /// + /// Paginator for ListArchiveSearches operation + /// + IListArchiveSearchesPaginator ListArchiveSearches(ListArchiveSearchesRequest request); + + /// + /// Paginator for ListIngressPoints operation + /// + IListIngressPointsPaginator ListIngressPoints(ListIngressPointsRequest request); + + /// + /// Paginator for ListRelays operation + /// + IListRelaysPaginator ListRelays(ListRelaysRequest request); + + /// + /// Paginator for ListRuleSets operation + /// + IListRuleSetsPaginator ListRuleSets(ListRuleSetsRequest request); + + /// + /// Paginator for ListTrafficPolicies operation + /// + IListTrafficPoliciesPaginator ListTrafficPolicies(ListTrafficPoliciesRequest request); + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonInstancesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonInstancesPaginator.cs new file mode 100644 index 000000000000..9095d3bb66f1 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonInstancesPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListAddonInstances paginators. + /// + internal sealed partial class ListAddonInstancesPaginator : IPaginator, IListAddonInstancesPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListAddonInstancesRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the AddonInstances + /// + public IPaginatedEnumerable AddonInstances => + new PaginatedResultKeyResponse(this, (i) => i.AddonInstances ?? new List()); + + internal ListAddonInstancesPaginator(IAmazonMailManager client, ListAddonInstancesRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListAddonInstancesResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListAddonInstances(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListAddonInstancesResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListAddonInstancesAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonSubscriptionsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonSubscriptionsPaginator.cs new file mode 100644 index 000000000000..65eef41a6fbe --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListAddonSubscriptionsPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListAddonSubscriptions paginators. + /// + internal sealed partial class ListAddonSubscriptionsPaginator : IPaginator, IListAddonSubscriptionsPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListAddonSubscriptionsRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the AddonSubscriptions + /// + public IPaginatedEnumerable AddonSubscriptions => + new PaginatedResultKeyResponse(this, (i) => i.AddonSubscriptions ?? new List()); + + internal ListAddonSubscriptionsPaginator(IAmazonMailManager client, ListAddonSubscriptionsRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListAddonSubscriptionsResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListAddonSubscriptions(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListAddonSubscriptionsResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListAddonSubscriptionsAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveExportsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveExportsPaginator.cs new file mode 100644 index 000000000000..33d2e3a55b83 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveExportsPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListArchiveExports paginators. + /// + internal sealed partial class ListArchiveExportsPaginator : IPaginator, IListArchiveExportsPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListArchiveExportsRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the Exports + /// + public IPaginatedEnumerable Exports => + new PaginatedResultKeyResponse(this, (i) => i.Exports ?? new List()); + + internal ListArchiveExportsPaginator(IAmazonMailManager client, ListArchiveExportsRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListArchiveExportsResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListArchiveExports(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListArchiveExportsResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListArchiveExportsAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveSearchesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveSearchesPaginator.cs new file mode 100644 index 000000000000..c02330275c14 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchiveSearchesPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListArchiveSearches paginators. + /// + internal sealed partial class ListArchiveSearchesPaginator : IPaginator, IListArchiveSearchesPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListArchiveSearchesRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the Searches + /// + public IPaginatedEnumerable Searches => + new PaginatedResultKeyResponse(this, (i) => i.Searches ?? new List()); + + internal ListArchiveSearchesPaginator(IAmazonMailManager client, ListArchiveSearchesRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListArchiveSearchesResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListArchiveSearches(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListArchiveSearchesResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListArchiveSearchesAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchivesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchivesPaginator.cs new file mode 100644 index 000000000000..a8858cc588ae --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListArchivesPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListArchives paginators. + /// + internal sealed partial class ListArchivesPaginator : IPaginator, IListArchivesPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListArchivesRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the Archives + /// + public IPaginatedEnumerable Archives => + new PaginatedResultKeyResponse(this, (i) => i.Archives ?? new List()); + + internal ListArchivesPaginator(IAmazonMailManager client, ListArchivesRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListArchivesResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListArchives(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListArchivesResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListArchivesAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListIngressPointsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListIngressPointsPaginator.cs new file mode 100644 index 000000000000..589ad3d14754 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListIngressPointsPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListIngressPoints paginators. + /// + internal sealed partial class ListIngressPointsPaginator : IPaginator, IListIngressPointsPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListIngressPointsRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the IngressPoints + /// + public IPaginatedEnumerable IngressPoints => + new PaginatedResultKeyResponse(this, (i) => i.IngressPoints ?? new List()); + + internal ListIngressPointsPaginator(IAmazonMailManager client, ListIngressPointsRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListIngressPointsResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListIngressPoints(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListIngressPointsResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListIngressPointsAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRelaysPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRelaysPaginator.cs new file mode 100644 index 000000000000..b1379c914d82 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRelaysPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListRelays paginators. + /// + internal sealed partial class ListRelaysPaginator : IPaginator, IListRelaysPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListRelaysRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the Relays + /// + public IPaginatedEnumerable Relays => + new PaginatedResultKeyResponse(this, (i) => i.Relays ?? new List()); + + internal ListRelaysPaginator(IAmazonMailManager client, ListRelaysRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListRelaysResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListRelays(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListRelaysResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListRelaysAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRuleSetsPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRuleSetsPaginator.cs new file mode 100644 index 000000000000..b47b302a5090 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListRuleSetsPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListRuleSets paginators. + /// + internal sealed partial class ListRuleSetsPaginator : IPaginator, IListRuleSetsPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListRuleSetsRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the RuleSets + /// + public IPaginatedEnumerable RuleSets => + new PaginatedResultKeyResponse(this, (i) => i.RuleSets ?? new List()); + + internal ListRuleSetsPaginator(IAmazonMailManager client, ListRuleSetsRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListRuleSetsResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListRuleSets(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListRuleSetsResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListRuleSetsAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListTrafficPoliciesPaginator.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListTrafficPoliciesPaginator.cs new file mode 100644 index 000000000000..2f7c7488395b --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/ListTrafficPoliciesPaginator.cs @@ -0,0 +1,98 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Base class for ListTrafficPolicies paginators. + /// + internal sealed partial class ListTrafficPoliciesPaginator : IPaginator, IListTrafficPoliciesPaginator + { + private readonly IAmazonMailManager _client; + private readonly ListTrafficPoliciesRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the TrafficPolicies + /// + public IPaginatedEnumerable TrafficPolicies => + new PaginatedResultKeyResponse(this, (i) => i.TrafficPolicies ?? new List()); + + internal ListTrafficPoliciesPaginator(IAmazonMailManager client, ListTrafficPoliciesRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListTrafficPoliciesResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListTrafficPolicies(_request); + nextToken = response.NextToken; + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync([System.Runtime.CompilerServices.EnumeratorCancellation] CancellationToken cancellationToken) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListTrafficPoliciesResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListTrafficPoliciesAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (!string.IsNullOrEmpty(nextToken)); + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/MailManagerPaginatorFactory.cs b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/MailManagerPaginatorFactory.cs new file mode 100644 index 000000000000..fb9b71eee7ee --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/Model/_bcl45+netstandard/MailManagerPaginatorFactory.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; + +#pragma warning disable CS0612,CS0618 +namespace Amazon.MailManager.Model +{ + /// + /// Paginators for the MailManager service + /// + public class MailManagerPaginatorFactory : IMailManagerPaginatorFactory + { + private readonly IAmazonMailManager client; + + internal MailManagerPaginatorFactory(IAmazonMailManager client) + { + this.client = client; + } + + /// + /// Paginator for ListAddonInstances operation + /// + public IListAddonInstancesPaginator ListAddonInstances(ListAddonInstancesRequest request) + { + return new ListAddonInstancesPaginator(this.client, request); + } + + /// + /// Paginator for ListAddonSubscriptions operation + /// + public IListAddonSubscriptionsPaginator ListAddonSubscriptions(ListAddonSubscriptionsRequest request) + { + return new ListAddonSubscriptionsPaginator(this.client, request); + } + + /// + /// Paginator for ListArchiveExports operation + /// + public IListArchiveExportsPaginator ListArchiveExports(ListArchiveExportsRequest request) + { + return new ListArchiveExportsPaginator(this.client, request); + } + + /// + /// Paginator for ListArchives operation + /// + public IListArchivesPaginator ListArchives(ListArchivesRequest request) + { + return new ListArchivesPaginator(this.client, request); + } + + /// + /// Paginator for ListArchiveSearches operation + /// + public IListArchiveSearchesPaginator ListArchiveSearches(ListArchiveSearchesRequest request) + { + return new ListArchiveSearchesPaginator(this.client, request); + } + + /// + /// Paginator for ListIngressPoints operation + /// + public IListIngressPointsPaginator ListIngressPoints(ListIngressPointsRequest request) + { + return new ListIngressPointsPaginator(this.client, request); + } + + /// + /// Paginator for ListRelays operation + /// + public IListRelaysPaginator ListRelays(ListRelaysRequest request) + { + return new ListRelaysPaginator(this.client, request); + } + + /// + /// Paginator for ListRuleSets operation + /// + public IListRuleSetsPaginator ListRuleSets(ListRuleSetsRequest request) + { + return new ListRuleSetsPaginator(this.client, request); + } + + /// + /// Paginator for ListTrafficPolicies operation + /// + public IListTrafficPoliciesPaginator ListTrafficPolicies(ListTrafficPoliciesRequest request) + { + return new ListTrafficPoliciesPaginator(this.client, request); + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/ServiceEnumerations.cs b/sdk/src/Services/MailManager/Generated/ServiceEnumerations.cs new file mode 100644 index 000000000000..5d5331170d9a --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/ServiceEnumerations.cs @@ -0,0 +1,1936 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using System; + +using Amazon.Runtime; + +namespace Amazon.MailManager +{ + + /// + /// Constants used for properties of type AcceptAction. + /// + public class AcceptAction : ConstantClass + { + + /// + /// Constant ALLOW for AcceptAction + /// + public static readonly AcceptAction ALLOW = new AcceptAction("ALLOW"); + /// + /// Constant DENY for AcceptAction + /// + public static readonly AcceptAction DENY = new AcceptAction("DENY"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public AcceptAction(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static AcceptAction FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator AcceptAction(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ActionFailurePolicy. + /// + public class ActionFailurePolicy : ConstantClass + { + + /// + /// Constant CONTINUE for ActionFailurePolicy + /// + public static readonly ActionFailurePolicy CONTINUE = new ActionFailurePolicy("CONTINUE"); + /// + /// Constant DROP for ActionFailurePolicy + /// + public static readonly ActionFailurePolicy DROP = new ActionFailurePolicy("DROP"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ActionFailurePolicy(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ActionFailurePolicy FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ActionFailurePolicy(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ArchiveBooleanEmailAttribute. + /// + public class ArchiveBooleanEmailAttribute : ConstantClass + { + + /// + /// Constant HAS_ATTACHMENTS for ArchiveBooleanEmailAttribute + /// + public static readonly ArchiveBooleanEmailAttribute HAS_ATTACHMENTS = new ArchiveBooleanEmailAttribute("HAS_ATTACHMENTS"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ArchiveBooleanEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ArchiveBooleanEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ArchiveBooleanEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ArchiveBooleanOperator. + /// + public class ArchiveBooleanOperator : ConstantClass + { + + /// + /// Constant IS_FALSE for ArchiveBooleanOperator + /// + public static readonly ArchiveBooleanOperator IS_FALSE = new ArchiveBooleanOperator("IS_FALSE"); + /// + /// Constant IS_TRUE for ArchiveBooleanOperator + /// + public static readonly ArchiveBooleanOperator IS_TRUE = new ArchiveBooleanOperator("IS_TRUE"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ArchiveBooleanOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ArchiveBooleanOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ArchiveBooleanOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ArchiveState. + /// + public class ArchiveState : ConstantClass + { + + /// + /// Constant ACTIVE for ArchiveState + /// + public static readonly ArchiveState ACTIVE = new ArchiveState("ACTIVE"); + /// + /// Constant PENDING_DELETION for ArchiveState + /// + public static readonly ArchiveState PENDING_DELETION = new ArchiveState("PENDING_DELETION"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ArchiveState(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ArchiveState FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ArchiveState(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ArchiveStringEmailAttribute. + /// + public class ArchiveStringEmailAttribute : ConstantClass + { + + /// + /// Constant CC for ArchiveStringEmailAttribute + /// + public static readonly ArchiveStringEmailAttribute CC = new ArchiveStringEmailAttribute("CC"); + /// + /// Constant FROM for ArchiveStringEmailAttribute + /// + public static readonly ArchiveStringEmailAttribute FROM = new ArchiveStringEmailAttribute("FROM"); + /// + /// Constant SUBJECT for ArchiveStringEmailAttribute + /// + public static readonly ArchiveStringEmailAttribute SUBJECT = new ArchiveStringEmailAttribute("SUBJECT"); + /// + /// Constant TO for ArchiveStringEmailAttribute + /// + public static readonly ArchiveStringEmailAttribute TO = new ArchiveStringEmailAttribute("TO"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ArchiveStringEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ArchiveStringEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ArchiveStringEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ArchiveStringOperator. + /// + public class ArchiveStringOperator : ConstantClass + { + + /// + /// Constant CONTAINS for ArchiveStringOperator + /// + public static readonly ArchiveStringOperator CONTAINS = new ArchiveStringOperator("CONTAINS"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ArchiveStringOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ArchiveStringOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ArchiveStringOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type ExportState. + /// + public class ExportState : ConstantClass + { + + /// + /// Constant CANCELLED for ExportState + /// + public static readonly ExportState CANCELLED = new ExportState("CANCELLED"); + /// + /// Constant COMPLETED for ExportState + /// + public static readonly ExportState COMPLETED = new ExportState("COMPLETED"); + /// + /// Constant FAILED for ExportState + /// + public static readonly ExportState FAILED = new ExportState("FAILED"); + /// + /// Constant PREPROCESSING for ExportState + /// + public static readonly ExportState PREPROCESSING = new ExportState("PREPROCESSING"); + /// + /// Constant PROCESSING for ExportState + /// + public static readonly ExportState PROCESSING = new ExportState("PROCESSING"); + /// + /// Constant QUEUED for ExportState + /// + public static readonly ExportState QUEUED = new ExportState("QUEUED"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public ExportState(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static ExportState FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator ExportState(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressBooleanOperator. + /// + public class IngressBooleanOperator : ConstantClass + { + + /// + /// Constant IS_FALSE for IngressBooleanOperator + /// + public static readonly IngressBooleanOperator IS_FALSE = new IngressBooleanOperator("IS_FALSE"); + /// + /// Constant IS_TRUE for IngressBooleanOperator + /// + public static readonly IngressBooleanOperator IS_TRUE = new IngressBooleanOperator("IS_TRUE"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressBooleanOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressBooleanOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressBooleanOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressIpOperator. + /// + public class IngressIpOperator : ConstantClass + { + + /// + /// Constant CIDR_MATCHES for IngressIpOperator + /// + public static readonly IngressIpOperator CIDR_MATCHES = new IngressIpOperator("CIDR_MATCHES"); + /// + /// Constant NOT_CIDR_MATCHES for IngressIpOperator + /// + public static readonly IngressIpOperator NOT_CIDR_MATCHES = new IngressIpOperator("NOT_CIDR_MATCHES"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressIpOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressIpOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressIpOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressIpv4Attribute. + /// + public class IngressIpv4Attribute : ConstantClass + { + + /// + /// Constant SENDER_IP for IngressIpv4Attribute + /// + public static readonly IngressIpv4Attribute SENDER_IP = new IngressIpv4Attribute("SENDER_IP"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressIpv4Attribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressIpv4Attribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressIpv4Attribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressPointStatus. + /// + public class IngressPointStatus : ConstantClass + { + + /// + /// Constant ACTIVE for IngressPointStatus + /// + public static readonly IngressPointStatus ACTIVE = new IngressPointStatus("ACTIVE"); + /// + /// Constant CLOSED for IngressPointStatus + /// + public static readonly IngressPointStatus CLOSED = new IngressPointStatus("CLOSED"); + /// + /// Constant DEPROVISIONING for IngressPointStatus + /// + public static readonly IngressPointStatus DEPROVISIONING = new IngressPointStatus("DEPROVISIONING"); + /// + /// Constant FAILED for IngressPointStatus + /// + public static readonly IngressPointStatus FAILED = new IngressPointStatus("FAILED"); + /// + /// Constant PROVISIONING for IngressPointStatus + /// + public static readonly IngressPointStatus PROVISIONING = new IngressPointStatus("PROVISIONING"); + /// + /// Constant UPDATING for IngressPointStatus + /// + public static readonly IngressPointStatus UPDATING = new IngressPointStatus("UPDATING"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressPointStatus(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressPointStatus FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressPointStatus(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressPointStatusToUpdate. + /// + public class IngressPointStatusToUpdate : ConstantClass + { + + /// + /// Constant ACTIVE for IngressPointStatusToUpdate + /// + public static readonly IngressPointStatusToUpdate ACTIVE = new IngressPointStatusToUpdate("ACTIVE"); + /// + /// Constant CLOSED for IngressPointStatusToUpdate + /// + public static readonly IngressPointStatusToUpdate CLOSED = new IngressPointStatusToUpdate("CLOSED"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressPointStatusToUpdate(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressPointStatusToUpdate FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressPointStatusToUpdate(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressPointType. + /// + public class IngressPointType : ConstantClass + { + + /// + /// Constant AUTH for IngressPointType + /// + public static readonly IngressPointType AUTH = new IngressPointType("AUTH"); + /// + /// Constant OPEN for IngressPointType + /// + public static readonly IngressPointType OPEN = new IngressPointType("OPEN"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressPointType(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressPointType FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressPointType(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressStringEmailAttribute. + /// + public class IngressStringEmailAttribute : ConstantClass + { + + /// + /// Constant RECIPIENT for IngressStringEmailAttribute + /// + public static readonly IngressStringEmailAttribute RECIPIENT = new IngressStringEmailAttribute("RECIPIENT"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressStringEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressStringEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressStringEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressStringOperator. + /// + public class IngressStringOperator : ConstantClass + { + + /// + /// Constant CONTAINS for IngressStringOperator + /// + public static readonly IngressStringOperator CONTAINS = new IngressStringOperator("CONTAINS"); + /// + /// Constant ENDS_WITH for IngressStringOperator + /// + public static readonly IngressStringOperator ENDS_WITH = new IngressStringOperator("ENDS_WITH"); + /// + /// Constant EQUALS for IngressStringOperator + /// + public static readonly IngressStringOperator EQUALS = new IngressStringOperator("EQUALS"); + /// + /// Constant NOT_EQUALS for IngressStringOperator + /// + public static readonly IngressStringOperator NOT_EQUALS = new IngressStringOperator("NOT_EQUALS"); + /// + /// Constant STARTS_WITH for IngressStringOperator + /// + public static readonly IngressStringOperator STARTS_WITH = new IngressStringOperator("STARTS_WITH"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressStringOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressStringOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressStringOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressTlsAttribute. + /// + public class IngressTlsAttribute : ConstantClass + { + + /// + /// Constant TLS_PROTOCOL for IngressTlsAttribute + /// + public static readonly IngressTlsAttribute TLS_PROTOCOL = new IngressTlsAttribute("TLS_PROTOCOL"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressTlsAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressTlsAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressTlsAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressTlsProtocolAttribute. + /// + public class IngressTlsProtocolAttribute : ConstantClass + { + + /// + /// Constant TLS1_2 for IngressTlsProtocolAttribute + /// + public static readonly IngressTlsProtocolAttribute TLS1_2 = new IngressTlsProtocolAttribute("TLS1_2"); + /// + /// Constant TLS1_3 for IngressTlsProtocolAttribute + /// + public static readonly IngressTlsProtocolAttribute TLS1_3 = new IngressTlsProtocolAttribute("TLS1_3"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressTlsProtocolAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressTlsProtocolAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressTlsProtocolAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type IngressTlsProtocolOperator. + /// + public class IngressTlsProtocolOperator : ConstantClass + { + + /// + /// Constant IS for IngressTlsProtocolOperator + /// + public static readonly IngressTlsProtocolOperator IS = new IngressTlsProtocolOperator("IS"); + /// + /// Constant MINIMUM_TLS_VERSION for IngressTlsProtocolOperator + /// + public static readonly IngressTlsProtocolOperator MINIMUM_TLS_VERSION = new IngressTlsProtocolOperator("MINIMUM_TLS_VERSION"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public IngressTlsProtocolOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static IngressTlsProtocolOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator IngressTlsProtocolOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type MailFrom. + /// + public class MailFrom : ConstantClass + { + + /// + /// Constant PRESERVE for MailFrom + /// + public static readonly MailFrom PRESERVE = new MailFrom("PRESERVE"); + /// + /// Constant REPLACE for MailFrom + /// + public static readonly MailFrom REPLACE = new MailFrom("REPLACE"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public MailFrom(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static MailFrom FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator MailFrom(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RetentionPeriod. + /// + public class RetentionPeriod : ConstantClass + { + + /// + /// Constant EIGHT_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod EIGHT_YEARS = new RetentionPeriod("EIGHT_YEARS"); + /// + /// Constant EIGHTEEN_MONTHS for RetentionPeriod + /// + public static readonly RetentionPeriod EIGHTEEN_MONTHS = new RetentionPeriod("EIGHTEEN_MONTHS"); + /// + /// Constant FIVE_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod FIVE_YEARS = new RetentionPeriod("FIVE_YEARS"); + /// + /// Constant FOUR_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod FOUR_YEARS = new RetentionPeriod("FOUR_YEARS"); + /// + /// Constant NINE_MONTHS for RetentionPeriod + /// + public static readonly RetentionPeriod NINE_MONTHS = new RetentionPeriod("NINE_MONTHS"); + /// + /// Constant NINE_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod NINE_YEARS = new RetentionPeriod("NINE_YEARS"); + /// + /// Constant ONE_YEAR for RetentionPeriod + /// + public static readonly RetentionPeriod ONE_YEAR = new RetentionPeriod("ONE_YEAR"); + /// + /// Constant PERMANENT for RetentionPeriod + /// + public static readonly RetentionPeriod PERMANENT = new RetentionPeriod("PERMANENT"); + /// + /// Constant SEVEN_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod SEVEN_YEARS = new RetentionPeriod("SEVEN_YEARS"); + /// + /// Constant SIX_MONTHS for RetentionPeriod + /// + public static readonly RetentionPeriod SIX_MONTHS = new RetentionPeriod("SIX_MONTHS"); + /// + /// Constant SIX_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod SIX_YEARS = new RetentionPeriod("SIX_YEARS"); + /// + /// Constant TEN_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod TEN_YEARS = new RetentionPeriod("TEN_YEARS"); + /// + /// Constant THIRTY_MONTHS for RetentionPeriod + /// + public static readonly RetentionPeriod THIRTY_MONTHS = new RetentionPeriod("THIRTY_MONTHS"); + /// + /// Constant THREE_MONTHS for RetentionPeriod + /// + public static readonly RetentionPeriod THREE_MONTHS = new RetentionPeriod("THREE_MONTHS"); + /// + /// Constant THREE_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod THREE_YEARS = new RetentionPeriod("THREE_YEARS"); + /// + /// Constant TWO_YEARS for RetentionPeriod + /// + public static readonly RetentionPeriod TWO_YEARS = new RetentionPeriod("TWO_YEARS"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RetentionPeriod(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RetentionPeriod FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RetentionPeriod(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleBooleanEmailAttribute. + /// + public class RuleBooleanEmailAttribute : ConstantClass + { + + /// + /// Constant READ_RECEIPT_REQUESTED for RuleBooleanEmailAttribute + /// + public static readonly RuleBooleanEmailAttribute READ_RECEIPT_REQUESTED = new RuleBooleanEmailAttribute("READ_RECEIPT_REQUESTED"); + /// + /// Constant TLS for RuleBooleanEmailAttribute + /// + public static readonly RuleBooleanEmailAttribute TLS = new RuleBooleanEmailAttribute("TLS"); + /// + /// Constant TLS_WRAPPED for RuleBooleanEmailAttribute + /// + public static readonly RuleBooleanEmailAttribute TLS_WRAPPED = new RuleBooleanEmailAttribute("TLS_WRAPPED"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleBooleanEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleBooleanEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleBooleanEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleBooleanOperator. + /// + public class RuleBooleanOperator : ConstantClass + { + + /// + /// Constant IS_FALSE for RuleBooleanOperator + /// + public static readonly RuleBooleanOperator IS_FALSE = new RuleBooleanOperator("IS_FALSE"); + /// + /// Constant IS_TRUE for RuleBooleanOperator + /// + public static readonly RuleBooleanOperator IS_TRUE = new RuleBooleanOperator("IS_TRUE"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleBooleanOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleBooleanOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleBooleanOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleDmarcOperator. + /// + public class RuleDmarcOperator : ConstantClass + { + + /// + /// Constant EQUALS for RuleDmarcOperator + /// + public static readonly RuleDmarcOperator EQUALS = new RuleDmarcOperator("EQUALS"); + /// + /// Constant NOT_EQUALS for RuleDmarcOperator + /// + public static readonly RuleDmarcOperator NOT_EQUALS = new RuleDmarcOperator("NOT_EQUALS"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleDmarcOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleDmarcOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleDmarcOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleDmarcPolicy. + /// + public class RuleDmarcPolicy : ConstantClass + { + + /// + /// Constant NONE for RuleDmarcPolicy + /// + public static readonly RuleDmarcPolicy NONE = new RuleDmarcPolicy("NONE"); + /// + /// Constant QUARANTINE for RuleDmarcPolicy + /// + public static readonly RuleDmarcPolicy QUARANTINE = new RuleDmarcPolicy("QUARANTINE"); + /// + /// Constant REJECT for RuleDmarcPolicy + /// + public static readonly RuleDmarcPolicy REJECT = new RuleDmarcPolicy("REJECT"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleDmarcPolicy(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleDmarcPolicy FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleDmarcPolicy(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleIpEmailAttribute. + /// + public class RuleIpEmailAttribute : ConstantClass + { + + /// + /// Constant SOURCE_IP for RuleIpEmailAttribute + /// + public static readonly RuleIpEmailAttribute SOURCE_IP = new RuleIpEmailAttribute("SOURCE_IP"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleIpEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleIpEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleIpEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleIpOperator. + /// + public class RuleIpOperator : ConstantClass + { + + /// + /// Constant CIDR_MATCHES for RuleIpOperator + /// + public static readonly RuleIpOperator CIDR_MATCHES = new RuleIpOperator("CIDR_MATCHES"); + /// + /// Constant NOT_CIDR_MATCHES for RuleIpOperator + /// + public static readonly RuleIpOperator NOT_CIDR_MATCHES = new RuleIpOperator("NOT_CIDR_MATCHES"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleIpOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleIpOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleIpOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleNumberEmailAttribute. + /// + public class RuleNumberEmailAttribute : ConstantClass + { + + /// + /// Constant MESSAGE_SIZE for RuleNumberEmailAttribute + /// + public static readonly RuleNumberEmailAttribute MESSAGE_SIZE = new RuleNumberEmailAttribute("MESSAGE_SIZE"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleNumberEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleNumberEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleNumberEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleNumberOperator. + /// + public class RuleNumberOperator : ConstantClass + { + + /// + /// Constant EQUALS for RuleNumberOperator + /// + public static readonly RuleNumberOperator EQUALS = new RuleNumberOperator("EQUALS"); + /// + /// Constant GREATER_THAN for RuleNumberOperator + /// + public static readonly RuleNumberOperator GREATER_THAN = new RuleNumberOperator("GREATER_THAN"); + /// + /// Constant GREATER_THAN_OR_EQUAL for RuleNumberOperator + /// + public static readonly RuleNumberOperator GREATER_THAN_OR_EQUAL = new RuleNumberOperator("GREATER_THAN_OR_EQUAL"); + /// + /// Constant LESS_THAN for RuleNumberOperator + /// + public static readonly RuleNumberOperator LESS_THAN = new RuleNumberOperator("LESS_THAN"); + /// + /// Constant LESS_THAN_OR_EQUAL for RuleNumberOperator + /// + public static readonly RuleNumberOperator LESS_THAN_OR_EQUAL = new RuleNumberOperator("LESS_THAN_OR_EQUAL"); + /// + /// Constant NOT_EQUALS for RuleNumberOperator + /// + public static readonly RuleNumberOperator NOT_EQUALS = new RuleNumberOperator("NOT_EQUALS"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleNumberOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleNumberOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleNumberOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleStringEmailAttribute. + /// + public class RuleStringEmailAttribute : ConstantClass + { + + /// + /// Constant CC for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute CC = new RuleStringEmailAttribute("CC"); + /// + /// Constant FROM for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute FROM = new RuleStringEmailAttribute("FROM"); + /// + /// Constant HELO for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute HELO = new RuleStringEmailAttribute("HELO"); + /// + /// Constant MAIL_FROM for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute MAIL_FROM = new RuleStringEmailAttribute("MAIL_FROM"); + /// + /// Constant RECIPIENT for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute RECIPIENT = new RuleStringEmailAttribute("RECIPIENT"); + /// + /// Constant SENDER for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute SENDER = new RuleStringEmailAttribute("SENDER"); + /// + /// Constant SUBJECT for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute SUBJECT = new RuleStringEmailAttribute("SUBJECT"); + /// + /// Constant TO for RuleStringEmailAttribute + /// + public static readonly RuleStringEmailAttribute TO = new RuleStringEmailAttribute("TO"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleStringEmailAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleStringEmailAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleStringEmailAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleStringOperator. + /// + public class RuleStringOperator : ConstantClass + { + + /// + /// Constant CONTAINS for RuleStringOperator + /// + public static readonly RuleStringOperator CONTAINS = new RuleStringOperator("CONTAINS"); + /// + /// Constant ENDS_WITH for RuleStringOperator + /// + public static readonly RuleStringOperator ENDS_WITH = new RuleStringOperator("ENDS_WITH"); + /// + /// Constant EQUALS for RuleStringOperator + /// + public static readonly RuleStringOperator EQUALS = new RuleStringOperator("EQUALS"); + /// + /// Constant NOT_EQUALS for RuleStringOperator + /// + public static readonly RuleStringOperator NOT_EQUALS = new RuleStringOperator("NOT_EQUALS"); + /// + /// Constant STARTS_WITH for RuleStringOperator + /// + public static readonly RuleStringOperator STARTS_WITH = new RuleStringOperator("STARTS_WITH"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleStringOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleStringOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleStringOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleVerdict. + /// + public class RuleVerdict : ConstantClass + { + + /// + /// Constant FAIL for RuleVerdict + /// + public static readonly RuleVerdict FAIL = new RuleVerdict("FAIL"); + /// + /// Constant GRAY for RuleVerdict + /// + public static readonly RuleVerdict GRAY = new RuleVerdict("GRAY"); + /// + /// Constant PASS for RuleVerdict + /// + public static readonly RuleVerdict PASS = new RuleVerdict("PASS"); + /// + /// Constant PROCESSING_FAILED for RuleVerdict + /// + public static readonly RuleVerdict PROCESSING_FAILED = new RuleVerdict("PROCESSING_FAILED"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleVerdict(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleVerdict FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleVerdict(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleVerdictAttribute. + /// + public class RuleVerdictAttribute : ConstantClass + { + + /// + /// Constant DKIM for RuleVerdictAttribute + /// + public static readonly RuleVerdictAttribute DKIM = new RuleVerdictAttribute("DKIM"); + /// + /// Constant SPF for RuleVerdictAttribute + /// + public static readonly RuleVerdictAttribute SPF = new RuleVerdictAttribute("SPF"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleVerdictAttribute(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleVerdictAttribute FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleVerdictAttribute(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type RuleVerdictOperator. + /// + public class RuleVerdictOperator : ConstantClass + { + + /// + /// Constant EQUALS for RuleVerdictOperator + /// + public static readonly RuleVerdictOperator EQUALS = new RuleVerdictOperator("EQUALS"); + /// + /// Constant NOT_EQUALS for RuleVerdictOperator + /// + public static readonly RuleVerdictOperator NOT_EQUALS = new RuleVerdictOperator("NOT_EQUALS"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public RuleVerdictOperator(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static RuleVerdictOperator FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator RuleVerdictOperator(string value) + { + return FindValue(value); + } + } + + + /// + /// Constants used for properties of type SearchState. + /// + public class SearchState : ConstantClass + { + + /// + /// Constant CANCELLED for SearchState + /// + public static readonly SearchState CANCELLED = new SearchState("CANCELLED"); + /// + /// Constant COMPLETED for SearchState + /// + public static readonly SearchState COMPLETED = new SearchState("COMPLETED"); + /// + /// Constant FAILED for SearchState + /// + public static readonly SearchState FAILED = new SearchState("FAILED"); + /// + /// Constant QUEUED for SearchState + /// + public static readonly SearchState QUEUED = new SearchState("QUEUED"); + /// + /// Constant RUNNING for SearchState + /// + public static readonly SearchState RUNNING = new SearchState("RUNNING"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public SearchState(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static SearchState FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator SearchState(string value) + { + return FindValue(value); + } + } + +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/_bcl35/AmazonMailManagerClient.cs b/sdk/src/Services/MailManager/Generated/_bcl35/AmazonMailManagerClient.cs new file mode 100644 index 000000000000..06def8c6792d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/_bcl35/AmazonMailManagerClient.cs @@ -0,0 +1,3277 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Collections.Generic; +using System.Net; + +using Amazon.MailManager.Model; +using Amazon.MailManager.Model.Internal.MarshallTransformations; +using Amazon.MailManager.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; + +#pragma warning disable CS1570 +namespace Amazon.MailManager +{ + /// + /// Implementation for accessing MailManager + /// + /// AWS SES Mail Manager API + /// + /// AWS SES Mail Manager API contains operations + /// and data types that comprise the Mail Manager feature of Amazon Simple Email Service. + /// + /// + /// + /// Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen + /// your organization's email infrastructure, simplify email workflow management, and + /// streamline email compliance control. To learn more, see the Mail + /// Manager chapter in the Amazon SES Developer Guide. + /// + /// + /// + /// + public partial class AmazonMailManagerClient : AmazonServiceClient, IAmazonMailManager + { + private static IServiceMetadata serviceMetadata = new AmazonMailManagerMetadata(); + +#if BCL45 || AWS_ASYNC_ENUMERABLES_API + private IMailManagerPaginatorFactory _paginators; + + /// + /// Paginators for the service + /// + public IMailManagerPaginatorFactory Paginators + { + get + { + if (this._paginators == null) + { + this._paginators = new MailManagerPaginatorFactory(this); + } + return this._paginators; + } + } +#endif + #region Constructors + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonMailManagerClient() + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMailManagerConfig()) { } + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonMailManagerClient(RegionEndpoint region) + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMailManagerConfig{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(AmazonMailManagerConfig config) + : base(FallbackCredentialsFactory.GetCredentials(config), config){} + /// + /// Constructs AmazonMailManagerClient with AWS Credentials + /// + /// AWS Credentials + public AmazonMailManagerClient(AWSCredentials credentials) + : this(credentials, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonMailManagerClient(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonMailManagerConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Credentials + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(AWSCredentials credentials, AmazonMailManagerConfig clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMailManagerConfig() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMailManagerConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMailManagerConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMailManagerConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion + + #region Overrides + + + /// + /// Creates the signer for the service. + /// + protected override AbstractAWSSigner CreateSigner() + { + return new AWS4Signer(); + } + + /// + /// Customize the pipeline + /// + /// + protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) + { + pipeline.RemoveHandler(); + pipeline.AddHandlerAfter(new AmazonMailManagerEndpointResolver()); + } + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region CreateAddonInstance + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + public virtual CreateAddonInstanceResponse CreateAddonInstance(CreateAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateAddonInstance operation. + /// + /// + /// Container for the necessary parameters to execute the CreateAddonInstance operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAddonInstance + /// operation. + /// REST API Reference for CreateAddonInstance Operation + public virtual IAsyncResult BeginCreateAddonInstance(CreateAddonInstanceRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonInstanceResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateAddonInstance operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateAddonInstance. + /// + /// Returns a CreateAddonInstanceResult from MailManager. + /// REST API Reference for CreateAddonInstance Operation + public virtual CreateAddonInstanceResponse EndCreateAddonInstance(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region CreateAddonSubscription + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + public virtual CreateAddonSubscriptionResponse CreateAddonSubscription(CreateAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateAddonSubscription operation. + /// + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAddonSubscription + /// operation. + /// REST API Reference for CreateAddonSubscription Operation + public virtual IAsyncResult BeginCreateAddonSubscription(CreateAddonSubscriptionRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonSubscriptionResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateAddonSubscription operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateAddonSubscription. + /// + /// Returns a CreateAddonSubscriptionResult from MailManager. + /// REST API Reference for CreateAddonSubscription Operation + public virtual CreateAddonSubscriptionResponse EndCreateAddonSubscription(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region CreateArchive + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + public virtual CreateArchiveResponse CreateArchive(CreateArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateArchive operation. + /// + /// + /// Container for the necessary parameters to execute the CreateArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateArchive + /// operation. + /// REST API Reference for CreateArchive Operation + public virtual IAsyncResult BeginCreateArchive(CreateArchiveRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateArchive. + /// + /// Returns a CreateArchiveResult from MailManager. + /// REST API Reference for CreateArchive Operation + public virtual CreateArchiveResponse EndCreateArchive(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region CreateIngressPoint + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + public virtual CreateIngressPointResponse CreateIngressPoint(CreateIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the CreateIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateIngressPoint + /// operation. + /// REST API Reference for CreateIngressPoint Operation + public virtual IAsyncResult BeginCreateIngressPoint(CreateIngressPointRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateIngressPointResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateIngressPoint. + /// + /// Returns a CreateIngressPointResult from MailManager. + /// REST API Reference for CreateIngressPoint Operation + public virtual CreateIngressPointResponse EndCreateIngressPoint(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region CreateRelay + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + public virtual CreateRelayResponse CreateRelay(CreateRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateRelay operation. + /// + /// + /// Container for the necessary parameters to execute the CreateRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRelay + /// operation. + /// REST API Reference for CreateRelay Operation + public virtual IAsyncResult BeginCreateRelay(CreateRelayRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRelayResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateRelay. + /// + /// Returns a CreateRelayResult from MailManager. + /// REST API Reference for CreateRelay Operation + public virtual CreateRelayResponse EndCreateRelay(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region CreateRuleSet + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + public virtual CreateRuleSetResponse CreateRuleSet(CreateRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the CreateRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRuleSet + /// operation. + /// REST API Reference for CreateRuleSet Operation + public virtual IAsyncResult BeginCreateRuleSet(CreateRuleSetRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRuleSetResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateRuleSet. + /// + /// Returns a CreateRuleSetResult from MailManager. + /// REST API Reference for CreateRuleSet Operation + public virtual CreateRuleSetResponse EndCreateRuleSet(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region CreateTrafficPolicy + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + public virtual CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTrafficPolicy + /// operation. + /// REST API Reference for CreateTrafficPolicy Operation + public virtual IAsyncResult BeginCreateTrafficPolicy(CreateTrafficPolicyRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateTrafficPolicy. + /// + /// Returns a CreateTrafficPolicyResult from MailManager. + /// REST API Reference for CreateTrafficPolicy Operation + public virtual CreateTrafficPolicyResponse EndCreateTrafficPolicy(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteAddonInstance + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + public virtual DeleteAddonInstanceResponse DeleteAddonInstance(DeleteAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteAddonInstance operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAddonInstance + /// operation. + /// REST API Reference for DeleteAddonInstance Operation + public virtual IAsyncResult BeginDeleteAddonInstance(DeleteAddonInstanceRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonInstanceResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteAddonInstance operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteAddonInstance. + /// + /// Returns a DeleteAddonInstanceResult from MailManager. + /// REST API Reference for DeleteAddonInstance Operation + public virtual DeleteAddonInstanceResponse EndDeleteAddonInstance(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteAddonSubscription + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + public virtual DeleteAddonSubscriptionResponse DeleteAddonSubscription(DeleteAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteAddonSubscription operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAddonSubscription + /// operation. + /// REST API Reference for DeleteAddonSubscription Operation + public virtual IAsyncResult BeginDeleteAddonSubscription(DeleteAddonSubscriptionRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonSubscriptionResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteAddonSubscription operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteAddonSubscription. + /// + /// Returns a DeleteAddonSubscriptionResult from MailManager. + /// REST API Reference for DeleteAddonSubscription Operation + public virtual DeleteAddonSubscriptionResponse EndDeleteAddonSubscription(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteArchive + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + public virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteArchive operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteArchive + /// operation. + /// REST API Reference for DeleteArchive Operation + public virtual IAsyncResult BeginDeleteArchive(DeleteArchiveRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteArchive. + /// + /// Returns a DeleteArchiveResult from MailManager. + /// REST API Reference for DeleteArchive Operation + public virtual DeleteArchiveResponse EndDeleteArchive(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteIngressPoint + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + public virtual DeleteIngressPointResponse DeleteIngressPoint(DeleteIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteIngressPoint + /// operation. + /// REST API Reference for DeleteIngressPoint Operation + public virtual IAsyncResult BeginDeleteIngressPoint(DeleteIngressPointRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteIngressPointResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteIngressPoint. + /// + /// Returns a DeleteIngressPointResult from MailManager. + /// REST API Reference for DeleteIngressPoint Operation + public virtual DeleteIngressPointResponse EndDeleteIngressPoint(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteRelay + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + public virtual DeleteRelayResponse DeleteRelay(DeleteRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteRelay operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRelay + /// operation. + /// REST API Reference for DeleteRelay Operation + public virtual IAsyncResult BeginDeleteRelay(DeleteRelayRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRelayResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteRelay. + /// + /// Returns a DeleteRelayResult from MailManager. + /// REST API Reference for DeleteRelay Operation + public virtual DeleteRelayResponse EndDeleteRelay(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteRuleSet + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + public virtual DeleteRuleSetResponse DeleteRuleSet(DeleteRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRuleSet + /// operation. + /// REST API Reference for DeleteRuleSet Operation + public virtual IAsyncResult BeginDeleteRuleSet(DeleteRuleSetRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRuleSetResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteRuleSet. + /// + /// Returns a DeleteRuleSetResult from MailManager. + /// REST API Reference for DeleteRuleSet Operation + public virtual DeleteRuleSetResponse EndDeleteRuleSet(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteTrafficPolicy + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + public virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTrafficPolicy + /// operation. + /// REST API Reference for DeleteTrafficPolicy Operation + public virtual IAsyncResult BeginDeleteTrafficPolicy(DeleteTrafficPolicyRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteTrafficPolicy. + /// + /// Returns a DeleteTrafficPolicyResult from MailManager. + /// REST API Reference for DeleteTrafficPolicy Operation + public virtual DeleteTrafficPolicyResponse EndDeleteTrafficPolicy(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetAddonInstance + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + public virtual GetAddonInstanceResponse GetAddonInstance(GetAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetAddonInstance operation. + /// + /// + /// Container for the necessary parameters to execute the GetAddonInstance operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAddonInstance + /// operation. + /// REST API Reference for GetAddonInstance Operation + public virtual IAsyncResult BeginGetAddonInstance(GetAddonInstanceRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonInstanceResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetAddonInstance operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetAddonInstance. + /// + /// Returns a GetAddonInstanceResult from MailManager. + /// REST API Reference for GetAddonInstance Operation + public virtual GetAddonInstanceResponse EndGetAddonInstance(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetAddonSubscription + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + public virtual GetAddonSubscriptionResponse GetAddonSubscription(GetAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetAddonSubscription operation. + /// + /// + /// Container for the necessary parameters to execute the GetAddonSubscription operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAddonSubscription + /// operation. + /// REST API Reference for GetAddonSubscription Operation + public virtual IAsyncResult BeginGetAddonSubscription(GetAddonSubscriptionRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonSubscriptionResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetAddonSubscription operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetAddonSubscription. + /// + /// Returns a GetAddonSubscriptionResult from MailManager. + /// REST API Reference for GetAddonSubscription Operation + public virtual GetAddonSubscriptionResponse EndGetAddonSubscription(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetArchive + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + public virtual GetArchiveResponse GetArchive(GetArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetArchive operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchive + /// operation. + /// REST API Reference for GetArchive Operation + public virtual IAsyncResult BeginGetArchive(GetArchiveRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchive. + /// + /// Returns a GetArchiveResult from MailManager. + /// REST API Reference for GetArchive Operation + public virtual GetArchiveResponse EndGetArchive(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetArchiveExport + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + public virtual GetArchiveExportResponse GetArchiveExport(GetArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetArchiveExport operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveExport operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveExport + /// operation. + /// REST API Reference for GetArchiveExport Operation + public virtual IAsyncResult BeginGetArchiveExport(GetArchiveExportRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveExportResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetArchiveExport operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveExport. + /// + /// Returns a GetArchiveExportResult from MailManager. + /// REST API Reference for GetArchiveExport Operation + public virtual GetArchiveExportResponse EndGetArchiveExport(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetArchiveMessage + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + public virtual GetArchiveMessageResponse GetArchiveMessage(GetArchiveMessageRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetArchiveMessage operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveMessage operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveMessage + /// operation. + /// REST API Reference for GetArchiveMessage Operation + public virtual IAsyncResult BeginGetArchiveMessage(GetArchiveMessageRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetArchiveMessage operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveMessage. + /// + /// Returns a GetArchiveMessageResult from MailManager. + /// REST API Reference for GetArchiveMessage Operation + public virtual GetArchiveMessageResponse EndGetArchiveMessage(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetArchiveMessageContent + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + public virtual GetArchiveMessageContentResponse GetArchiveMessageContent(GetArchiveMessageContentRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageContentRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageContentResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetArchiveMessageContent operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveMessageContent + /// operation. + /// REST API Reference for GetArchiveMessageContent Operation + public virtual IAsyncResult BeginGetArchiveMessageContent(GetArchiveMessageContentRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageContentRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageContentResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetArchiveMessageContent operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveMessageContent. + /// + /// Returns a GetArchiveMessageContentResult from MailManager. + /// REST API Reference for GetArchiveMessageContent Operation + public virtual GetArchiveMessageContentResponse EndGetArchiveMessageContent(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetArchiveSearch + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + public virtual GetArchiveSearchResponse GetArchiveSearch(GetArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetArchiveSearch operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveSearch operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveSearch + /// operation. + /// REST API Reference for GetArchiveSearch Operation + public virtual IAsyncResult BeginGetArchiveSearch(GetArchiveSearchRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetArchiveSearch operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveSearch. + /// + /// Returns a GetArchiveSearchResult from MailManager. + /// REST API Reference for GetArchiveSearch Operation + public virtual GetArchiveSearchResponse EndGetArchiveSearch(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetArchiveSearchResults + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + public virtual GetArchiveSearchResultsResponse GetArchiveSearchResults(GetArchiveSearchResultsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchResultsRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResultsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetArchiveSearchResults operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveSearchResults + /// operation. + /// REST API Reference for GetArchiveSearchResults Operation + public virtual IAsyncResult BeginGetArchiveSearchResults(GetArchiveSearchResultsRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchResultsRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResultsResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetArchiveSearchResults operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveSearchResults. + /// + /// Returns a GetArchiveSearchResultsResult from MailManager. + /// REST API Reference for GetArchiveSearchResults Operation + public virtual GetArchiveSearchResultsResponse EndGetArchiveSearchResults(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetIngressPoint + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + public virtual GetIngressPointResponse GetIngressPoint(GetIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the GetIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetIngressPoint + /// operation. + /// REST API Reference for GetIngressPoint Operation + public virtual IAsyncResult BeginGetIngressPoint(GetIngressPointRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetIngressPointResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetIngressPoint. + /// + /// Returns a GetIngressPointResult from MailManager. + /// REST API Reference for GetIngressPoint Operation + public virtual GetIngressPointResponse EndGetIngressPoint(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetRelay + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + public virtual GetRelayResponse GetRelay(GetRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetRelay operation. + /// + /// + /// Container for the necessary parameters to execute the GetRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRelay + /// operation. + /// REST API Reference for GetRelay Operation + public virtual IAsyncResult BeginGetRelay(GetRelayRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRelayResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetRelay. + /// + /// Returns a GetRelayResult from MailManager. + /// REST API Reference for GetRelay Operation + public virtual GetRelayResponse EndGetRelay(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetRuleSet + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + public virtual GetRuleSetResponse GetRuleSet(GetRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the GetRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRuleSet + /// operation. + /// REST API Reference for GetRuleSet Operation + public virtual IAsyncResult BeginGetRuleSet(GetRuleSetRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRuleSetResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetRuleSet. + /// + /// Returns a GetRuleSetResult from MailManager. + /// REST API Reference for GetRuleSet Operation + public virtual GetRuleSetResponse EndGetRuleSet(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region GetTrafficPolicy + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + public virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the GetTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTrafficPolicy + /// operation. + /// REST API Reference for GetTrafficPolicy Operation + public virtual IAsyncResult BeginGetTrafficPolicy(GetTrafficPolicyRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the GetTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetTrafficPolicy. + /// + /// Returns a GetTrafficPolicyResult from MailManager. + /// REST API Reference for GetTrafficPolicy Operation + public virtual GetTrafficPolicyResponse EndGetTrafficPolicy(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListAddonInstances + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + public virtual ListAddonInstancesResponse ListAddonInstances(ListAddonInstancesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonInstancesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonInstancesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListAddonInstances operation. + /// + /// + /// Container for the necessary parameters to execute the ListAddonInstances operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAddonInstances + /// operation. + /// REST API Reference for ListAddonInstances Operation + public virtual IAsyncResult BeginListAddonInstances(ListAddonInstancesRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonInstancesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonInstancesResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListAddonInstances operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListAddonInstances. + /// + /// Returns a ListAddonInstancesResult from MailManager. + /// REST API Reference for ListAddonInstances Operation + public virtual ListAddonInstancesResponse EndListAddonInstances(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListAddonSubscriptions + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + public virtual ListAddonSubscriptionsResponse ListAddonSubscriptions(ListAddonSubscriptionsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonSubscriptionsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonSubscriptionsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListAddonSubscriptions operation. + /// + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAddonSubscriptions + /// operation. + /// REST API Reference for ListAddonSubscriptions Operation + public virtual IAsyncResult BeginListAddonSubscriptions(ListAddonSubscriptionsRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonSubscriptionsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonSubscriptionsResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListAddonSubscriptions operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListAddonSubscriptions. + /// + /// Returns a ListAddonSubscriptionsResult from MailManager. + /// REST API Reference for ListAddonSubscriptions Operation + public virtual ListAddonSubscriptionsResponse EndListAddonSubscriptions(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListArchiveExports + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + public virtual ListArchiveExportsResponse ListArchiveExports(ListArchiveExportsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveExportsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveExportsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListArchiveExports operation. + /// + /// + /// Container for the necessary parameters to execute the ListArchiveExports operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchiveExports + /// operation. + /// REST API Reference for ListArchiveExports Operation + public virtual IAsyncResult BeginListArchiveExports(ListArchiveExportsRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveExportsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveExportsResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListArchiveExports operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListArchiveExports. + /// + /// Returns a ListArchiveExportsResult from MailManager. + /// REST API Reference for ListArchiveExports Operation + public virtual ListArchiveExportsResponse EndListArchiveExports(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListArchives + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + public virtual ListArchivesResponse ListArchives(ListArchivesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchivesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListArchives operation. + /// + /// + /// Container for the necessary parameters to execute the ListArchives operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchives + /// operation. + /// REST API Reference for ListArchives Operation + public virtual IAsyncResult BeginListArchives(ListArchivesRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchivesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListArchives operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListArchives. + /// + /// Returns a ListArchivesResult from MailManager. + /// REST API Reference for ListArchives Operation + public virtual ListArchivesResponse EndListArchives(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListArchiveSearches + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + public virtual ListArchiveSearchesResponse ListArchiveSearches(ListArchiveSearchesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveSearchesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveSearchesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListArchiveSearches operation. + /// + /// + /// Container for the necessary parameters to execute the ListArchiveSearches operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchiveSearches + /// operation. + /// REST API Reference for ListArchiveSearches Operation + public virtual IAsyncResult BeginListArchiveSearches(ListArchiveSearchesRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveSearchesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveSearchesResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListArchiveSearches operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListArchiveSearches. + /// + /// Returns a ListArchiveSearchesResult from MailManager. + /// REST API Reference for ListArchiveSearches Operation + public virtual ListArchiveSearchesResponse EndListArchiveSearches(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListIngressPoints + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + public virtual ListIngressPointsResponse ListIngressPoints(ListIngressPointsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListIngressPointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListIngressPointsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListIngressPoints operation. + /// + /// + /// Container for the necessary parameters to execute the ListIngressPoints operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListIngressPoints + /// operation. + /// REST API Reference for ListIngressPoints Operation + public virtual IAsyncResult BeginListIngressPoints(ListIngressPointsRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListIngressPointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListIngressPointsResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListIngressPoints operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListIngressPoints. + /// + /// Returns a ListIngressPointsResult from MailManager. + /// REST API Reference for ListIngressPoints Operation + public virtual ListIngressPointsResponse EndListIngressPoints(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListRelays + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + public virtual ListRelaysResponse ListRelays(ListRelaysRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRelaysRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRelaysResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListRelays operation. + /// + /// + /// Container for the necessary parameters to execute the ListRelays operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRelays + /// operation. + /// REST API Reference for ListRelays Operation + public virtual IAsyncResult BeginListRelays(ListRelaysRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRelaysRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRelaysResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListRelays operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListRelays. + /// + /// Returns a ListRelaysResult from MailManager. + /// REST API Reference for ListRelays Operation + public virtual ListRelaysResponse EndListRelays(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListRuleSets + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + public virtual ListRuleSetsResponse ListRuleSets(ListRuleSetsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRuleSetsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRuleSetsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListRuleSets operation. + /// + /// + /// Container for the necessary parameters to execute the ListRuleSets operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRuleSets + /// operation. + /// REST API Reference for ListRuleSets Operation + public virtual IAsyncResult BeginListRuleSets(ListRuleSetsRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRuleSetsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRuleSetsResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListRuleSets operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListRuleSets. + /// + /// Returns a ListRuleSetsResult from MailManager. + /// REST API Reference for ListRuleSets Operation + public virtual ListRuleSetsResponse EndListRuleSets(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListTagsForResource + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListTagsForResource operation. + /// + /// + /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource + /// operation. + /// REST API Reference for ListTagsForResource Operation + public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListTagsForResource operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListTagsForResource. + /// + /// Returns a ListTagsForResourceResult from MailManager. + /// REST API Reference for ListTagsForResource Operation + public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListTrafficPolicies + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + public virtual ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListTrafficPolicies operation. + /// + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTrafficPolicies + /// operation. + /// REST API Reference for ListTrafficPolicies Operation + public virtual IAsyncResult BeginListTrafficPolicies(ListTrafficPoliciesRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListTrafficPolicies operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListTrafficPolicies. + /// + /// Returns a ListTrafficPoliciesResult from MailManager. + /// REST API Reference for ListTrafficPolicies Operation + public virtual ListTrafficPoliciesResponse EndListTrafficPolicies(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region StartArchiveExport + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + public virtual StartArchiveExportResponse StartArchiveExport(StartArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the StartArchiveExport operation. + /// + /// + /// Container for the necessary parameters to execute the StartArchiveExport operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartArchiveExport + /// operation. + /// REST API Reference for StartArchiveExport Operation + public virtual IAsyncResult BeginStartArchiveExport(StartArchiveExportRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveExportResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the StartArchiveExport operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStartArchiveExport. + /// + /// Returns a StartArchiveExportResult from MailManager. + /// REST API Reference for StartArchiveExport Operation + public virtual StartArchiveExportResponse EndStartArchiveExport(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region StartArchiveSearch + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + public virtual StartArchiveSearchResponse StartArchiveSearch(StartArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the StartArchiveSearch operation. + /// + /// + /// Container for the necessary parameters to execute the StartArchiveSearch operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartArchiveSearch + /// operation. + /// REST API Reference for StartArchiveSearch Operation + public virtual IAsyncResult BeginStartArchiveSearch(StartArchiveSearchRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveSearchResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the StartArchiveSearch operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStartArchiveSearch. + /// + /// Returns a StartArchiveSearchResult from MailManager. + /// REST API Reference for StartArchiveSearch Operation + public virtual StartArchiveSearchResponse EndStartArchiveSearch(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region StopArchiveExport + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + public virtual StopArchiveExportResponse StopArchiveExport(StopArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the StopArchiveExport operation. + /// + /// + /// Container for the necessary parameters to execute the StopArchiveExport operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopArchiveExport + /// operation. + /// REST API Reference for StopArchiveExport Operation + public virtual IAsyncResult BeginStopArchiveExport(StopArchiveExportRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveExportResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the StopArchiveExport operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStopArchiveExport. + /// + /// Returns a StopArchiveExportResult from MailManager. + /// REST API Reference for StopArchiveExport Operation + public virtual StopArchiveExportResponse EndStopArchiveExport(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region StopArchiveSearch + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + public virtual StopArchiveSearchResponse StopArchiveSearch(StopArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the StopArchiveSearch operation. + /// + /// + /// Container for the necessary parameters to execute the StopArchiveSearch operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopArchiveSearch + /// operation. + /// REST API Reference for StopArchiveSearch Operation + public virtual IAsyncResult BeginStopArchiveSearch(StopArchiveSearchRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveSearchResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the StopArchiveSearch operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStopArchiveSearch. + /// + /// Returns a StopArchiveSearchResult from MailManager. + /// REST API Reference for StopArchiveSearch Operation + public virtual StopArchiveSearchResponse EndStopArchiveSearch(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region TagResource + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + public virtual TagResourceResponse TagResource(TagResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = TagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the TagResource operation. + /// + /// + /// Container for the necessary parameters to execute the TagResource operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource + /// operation. + /// REST API Reference for TagResource Operation + public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = TagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the TagResource operation. + /// + /// + /// The IAsyncResult returned by the call to BeginTagResource. + /// + /// Returns a TagResourceResult from MailManager. + /// REST API Reference for TagResource Operation + public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region UntagResource + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the UntagResource operation. + /// + /// + /// Container for the necessary parameters to execute the UntagResource operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource + /// operation. + /// REST API Reference for UntagResource Operation + public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the UntagResource operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUntagResource. + /// + /// Returns a UntagResourceResult from MailManager. + /// REST API Reference for UntagResource Operation + public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region UpdateArchive + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + public virtual UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the UpdateArchive operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateArchive + /// operation. + /// REST API Reference for UpdateArchive Operation + public virtual IAsyncResult BeginUpdateArchive(UpdateArchiveRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the UpdateArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateArchive. + /// + /// Returns a UpdateArchiveResult from MailManager. + /// REST API Reference for UpdateArchive Operation + public virtual UpdateArchiveResponse EndUpdateArchive(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region UpdateIngressPoint + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + public virtual UpdateIngressPointResponse UpdateIngressPoint(UpdateIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the UpdateIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateIngressPoint + /// operation. + /// REST API Reference for UpdateIngressPoint Operation + public virtual IAsyncResult BeginUpdateIngressPoint(UpdateIngressPointRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateIngressPointResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the UpdateIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateIngressPoint. + /// + /// Returns a UpdateIngressPointResult from MailManager. + /// REST API Reference for UpdateIngressPoint Operation + public virtual UpdateIngressPointResponse EndUpdateIngressPoint(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region UpdateRelay + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + public virtual UpdateRelayResponse UpdateRelay(UpdateRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the UpdateRelay operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateRelay + /// operation. + /// REST API Reference for UpdateRelay Operation + public virtual IAsyncResult BeginUpdateRelay(UpdateRelayRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRelayResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the UpdateRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateRelay. + /// + /// Returns a UpdateRelayResult from MailManager. + /// REST API Reference for UpdateRelay Operation + public virtual UpdateRelayResponse EndUpdateRelay(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region UpdateRuleSet + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + public virtual UpdateRuleSetResponse UpdateRuleSet(UpdateRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the UpdateRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateRuleSet + /// operation. + /// REST API Reference for UpdateRuleSet Operation + public virtual IAsyncResult BeginUpdateRuleSet(UpdateRuleSetRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRuleSetResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the UpdateRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateRuleSet. + /// + /// Returns a UpdateRuleSetResult from MailManager. + /// REST API Reference for UpdateRuleSet Operation + public virtual UpdateRuleSetResponse EndUpdateRuleSet(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region UpdateTrafficPolicy + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + public virtual UpdateTrafficPolicyResponse UpdateTrafficPolicy(UpdateTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the UpdateTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateTrafficPolicy + /// operation. + /// REST API Reference for UpdateTrafficPolicy Operation + public virtual IAsyncResult BeginUpdateTrafficPolicy(UpdateTrafficPolicyRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateTrafficPolicyResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the UpdateTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateTrafficPolicy. + /// + /// Returns a UpdateTrafficPolicyResult from MailManager. + /// REST API Reference for UpdateTrafficPolicy Operation + public virtual UpdateTrafficPolicyResponse EndUpdateTrafficPolicy(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DetermineServiceOperationEndpoint + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// Request for the desired service operation. + /// The resolved endpoint for the given request. + public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request) + { + var requestContext = new RequestContext(false, CreateSigner()) + { + ClientConfig = Config, + OriginalRequest = request, + Request = new DefaultRequest(request, ServiceMetadata.ServiceId) + }; + + var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null); + var resolver = new AmazonMailManagerEndpointResolver(); + return resolver.GetEndpoint(executionContext); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/_bcl35/IAmazonMailManager.cs b/sdk/src/Services/MailManager/Generated/_bcl35/IAmazonMailManager.cs new file mode 100644 index 000000000000..dd3e52bfe29d --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/_bcl35/IAmazonMailManager.cs @@ -0,0 +1,2388 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.MailManager.Model; + +#pragma warning disable CS1570 +namespace Amazon.MailManager +{ + /// + /// Interface for accessing MailManager + /// + /// AWS SES Mail Manager API + /// + /// AWS SES Mail Manager API contains operations + /// and data types that comprise the Mail Manager feature of Amazon Simple Email Service. + /// + /// + /// + /// Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen + /// your organization's email infrastructure, simplify email workflow management, and + /// streamline email compliance control. To learn more, see the Mail + /// Manager chapter in the Amazon SES Developer Guide. + /// + /// + /// + /// + public partial interface IAmazonMailManager : IAmazonService, IDisposable + { + + +#if BCL45 || AWS_ASYNC_ENUMERABLES_API + /// + /// Paginators for the service + /// + IMailManagerPaginatorFactory Paginators { get; } +#endif + + + + #region CreateAddonInstance + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + CreateAddonInstanceResponse CreateAddonInstance(CreateAddonInstanceRequest request); + + /// + /// Initiates the asynchronous execution of the CreateAddonInstance operation. + /// + /// + /// Container for the necessary parameters to execute the CreateAddonInstance operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAddonInstance + /// operation. + /// REST API Reference for CreateAddonInstance Operation + IAsyncResult BeginCreateAddonInstance(CreateAddonInstanceRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateAddonInstance operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateAddonInstance. + /// + /// Returns a CreateAddonInstanceResult from MailManager. + /// REST API Reference for CreateAddonInstance Operation + CreateAddonInstanceResponse EndCreateAddonInstance(IAsyncResult asyncResult); + + #endregion + + #region CreateAddonSubscription + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + CreateAddonSubscriptionResponse CreateAddonSubscription(CreateAddonSubscriptionRequest request); + + /// + /// Initiates the asynchronous execution of the CreateAddonSubscription operation. + /// + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAddonSubscription + /// operation. + /// REST API Reference for CreateAddonSubscription Operation + IAsyncResult BeginCreateAddonSubscription(CreateAddonSubscriptionRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateAddonSubscription operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateAddonSubscription. + /// + /// Returns a CreateAddonSubscriptionResult from MailManager. + /// REST API Reference for CreateAddonSubscription Operation + CreateAddonSubscriptionResponse EndCreateAddonSubscription(IAsyncResult asyncResult); + + #endregion + + #region CreateArchive + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + CreateArchiveResponse CreateArchive(CreateArchiveRequest request); + + /// + /// Initiates the asynchronous execution of the CreateArchive operation. + /// + /// + /// Container for the necessary parameters to execute the CreateArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateArchive + /// operation. + /// REST API Reference for CreateArchive Operation + IAsyncResult BeginCreateArchive(CreateArchiveRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateArchive. + /// + /// Returns a CreateArchiveResult from MailManager. + /// REST API Reference for CreateArchive Operation + CreateArchiveResponse EndCreateArchive(IAsyncResult asyncResult); + + #endregion + + #region CreateIngressPoint + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + CreateIngressPointResponse CreateIngressPoint(CreateIngressPointRequest request); + + /// + /// Initiates the asynchronous execution of the CreateIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the CreateIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateIngressPoint + /// operation. + /// REST API Reference for CreateIngressPoint Operation + IAsyncResult BeginCreateIngressPoint(CreateIngressPointRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateIngressPoint. + /// + /// Returns a CreateIngressPointResult from MailManager. + /// REST API Reference for CreateIngressPoint Operation + CreateIngressPointResponse EndCreateIngressPoint(IAsyncResult asyncResult); + + #endregion + + #region CreateRelay + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + CreateRelayResponse CreateRelay(CreateRelayRequest request); + + /// + /// Initiates the asynchronous execution of the CreateRelay operation. + /// + /// + /// Container for the necessary parameters to execute the CreateRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRelay + /// operation. + /// REST API Reference for CreateRelay Operation + IAsyncResult BeginCreateRelay(CreateRelayRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateRelay. + /// + /// Returns a CreateRelayResult from MailManager. + /// REST API Reference for CreateRelay Operation + CreateRelayResponse EndCreateRelay(IAsyncResult asyncResult); + + #endregion + + #region CreateRuleSet + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + CreateRuleSetResponse CreateRuleSet(CreateRuleSetRequest request); + + /// + /// Initiates the asynchronous execution of the CreateRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the CreateRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRuleSet + /// operation. + /// REST API Reference for CreateRuleSet Operation + IAsyncResult BeginCreateRuleSet(CreateRuleSetRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateRuleSet. + /// + /// Returns a CreateRuleSetResult from MailManager. + /// REST API Reference for CreateRuleSet Operation + CreateRuleSetResponse EndCreateRuleSet(IAsyncResult asyncResult); + + #endregion + + #region CreateTrafficPolicy + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request); + + /// + /// Initiates the asynchronous execution of the CreateTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTrafficPolicy + /// operation. + /// REST API Reference for CreateTrafficPolicy Operation + IAsyncResult BeginCreateTrafficPolicy(CreateTrafficPolicyRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateTrafficPolicy. + /// + /// Returns a CreateTrafficPolicyResult from MailManager. + /// REST API Reference for CreateTrafficPolicy Operation + CreateTrafficPolicyResponse EndCreateTrafficPolicy(IAsyncResult asyncResult); + + #endregion + + #region DeleteAddonInstance + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + DeleteAddonInstanceResponse DeleteAddonInstance(DeleteAddonInstanceRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteAddonInstance operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAddonInstance + /// operation. + /// REST API Reference for DeleteAddonInstance Operation + IAsyncResult BeginDeleteAddonInstance(DeleteAddonInstanceRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteAddonInstance operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteAddonInstance. + /// + /// Returns a DeleteAddonInstanceResult from MailManager. + /// REST API Reference for DeleteAddonInstance Operation + DeleteAddonInstanceResponse EndDeleteAddonInstance(IAsyncResult asyncResult); + + #endregion + + #region DeleteAddonSubscription + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + DeleteAddonSubscriptionResponse DeleteAddonSubscription(DeleteAddonSubscriptionRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteAddonSubscription operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAddonSubscription + /// operation. + /// REST API Reference for DeleteAddonSubscription Operation + IAsyncResult BeginDeleteAddonSubscription(DeleteAddonSubscriptionRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteAddonSubscription operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteAddonSubscription. + /// + /// Returns a DeleteAddonSubscriptionResult from MailManager. + /// REST API Reference for DeleteAddonSubscription Operation + DeleteAddonSubscriptionResponse EndDeleteAddonSubscription(IAsyncResult asyncResult); + + #endregion + + #region DeleteArchive + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteArchive operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteArchive + /// operation. + /// REST API Reference for DeleteArchive Operation + IAsyncResult BeginDeleteArchive(DeleteArchiveRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteArchive. + /// + /// Returns a DeleteArchiveResult from MailManager. + /// REST API Reference for DeleteArchive Operation + DeleteArchiveResponse EndDeleteArchive(IAsyncResult asyncResult); + + #endregion + + #region DeleteIngressPoint + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + DeleteIngressPointResponse DeleteIngressPoint(DeleteIngressPointRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteIngressPoint + /// operation. + /// REST API Reference for DeleteIngressPoint Operation + IAsyncResult BeginDeleteIngressPoint(DeleteIngressPointRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteIngressPoint. + /// + /// Returns a DeleteIngressPointResult from MailManager. + /// REST API Reference for DeleteIngressPoint Operation + DeleteIngressPointResponse EndDeleteIngressPoint(IAsyncResult asyncResult); + + #endregion + + #region DeleteRelay + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + DeleteRelayResponse DeleteRelay(DeleteRelayRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteRelay operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRelay + /// operation. + /// REST API Reference for DeleteRelay Operation + IAsyncResult BeginDeleteRelay(DeleteRelayRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteRelay. + /// + /// Returns a DeleteRelayResult from MailManager. + /// REST API Reference for DeleteRelay Operation + DeleteRelayResponse EndDeleteRelay(IAsyncResult asyncResult); + + #endregion + + #region DeleteRuleSet + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + DeleteRuleSetResponse DeleteRuleSet(DeleteRuleSetRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRuleSet + /// operation. + /// REST API Reference for DeleteRuleSet Operation + IAsyncResult BeginDeleteRuleSet(DeleteRuleSetRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteRuleSet. + /// + /// Returns a DeleteRuleSetResult from MailManager. + /// REST API Reference for DeleteRuleSet Operation + DeleteRuleSetResponse EndDeleteRuleSet(IAsyncResult asyncResult); + + #endregion + + #region DeleteTrafficPolicy + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTrafficPolicy + /// operation. + /// REST API Reference for DeleteTrafficPolicy Operation + IAsyncResult BeginDeleteTrafficPolicy(DeleteTrafficPolicyRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteTrafficPolicy. + /// + /// Returns a DeleteTrafficPolicyResult from MailManager. + /// REST API Reference for DeleteTrafficPolicy Operation + DeleteTrafficPolicyResponse EndDeleteTrafficPolicy(IAsyncResult asyncResult); + + #endregion + + #region GetAddonInstance + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + GetAddonInstanceResponse GetAddonInstance(GetAddonInstanceRequest request); + + /// + /// Initiates the asynchronous execution of the GetAddonInstance operation. + /// + /// + /// Container for the necessary parameters to execute the GetAddonInstance operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAddonInstance + /// operation. + /// REST API Reference for GetAddonInstance Operation + IAsyncResult BeginGetAddonInstance(GetAddonInstanceRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetAddonInstance operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetAddonInstance. + /// + /// Returns a GetAddonInstanceResult from MailManager. + /// REST API Reference for GetAddonInstance Operation + GetAddonInstanceResponse EndGetAddonInstance(IAsyncResult asyncResult); + + #endregion + + #region GetAddonSubscription + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + GetAddonSubscriptionResponse GetAddonSubscription(GetAddonSubscriptionRequest request); + + /// + /// Initiates the asynchronous execution of the GetAddonSubscription operation. + /// + /// + /// Container for the necessary parameters to execute the GetAddonSubscription operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAddonSubscription + /// operation. + /// REST API Reference for GetAddonSubscription Operation + IAsyncResult BeginGetAddonSubscription(GetAddonSubscriptionRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetAddonSubscription operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetAddonSubscription. + /// + /// Returns a GetAddonSubscriptionResult from MailManager. + /// REST API Reference for GetAddonSubscription Operation + GetAddonSubscriptionResponse EndGetAddonSubscription(IAsyncResult asyncResult); + + #endregion + + #region GetArchive + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + GetArchiveResponse GetArchive(GetArchiveRequest request); + + /// + /// Initiates the asynchronous execution of the GetArchive operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchive + /// operation. + /// REST API Reference for GetArchive Operation + IAsyncResult BeginGetArchive(GetArchiveRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchive. + /// + /// Returns a GetArchiveResult from MailManager. + /// REST API Reference for GetArchive Operation + GetArchiveResponse EndGetArchive(IAsyncResult asyncResult); + + #endregion + + #region GetArchiveExport + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + GetArchiveExportResponse GetArchiveExport(GetArchiveExportRequest request); + + /// + /// Initiates the asynchronous execution of the GetArchiveExport operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveExport operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveExport + /// operation. + /// REST API Reference for GetArchiveExport Operation + IAsyncResult BeginGetArchiveExport(GetArchiveExportRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetArchiveExport operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveExport. + /// + /// Returns a GetArchiveExportResult from MailManager. + /// REST API Reference for GetArchiveExport Operation + GetArchiveExportResponse EndGetArchiveExport(IAsyncResult asyncResult); + + #endregion + + #region GetArchiveMessage + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + GetArchiveMessageResponse GetArchiveMessage(GetArchiveMessageRequest request); + + /// + /// Initiates the asynchronous execution of the GetArchiveMessage operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveMessage operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveMessage + /// operation. + /// REST API Reference for GetArchiveMessage Operation + IAsyncResult BeginGetArchiveMessage(GetArchiveMessageRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetArchiveMessage operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveMessage. + /// + /// Returns a GetArchiveMessageResult from MailManager. + /// REST API Reference for GetArchiveMessage Operation + GetArchiveMessageResponse EndGetArchiveMessage(IAsyncResult asyncResult); + + #endregion + + #region GetArchiveMessageContent + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + GetArchiveMessageContentResponse GetArchiveMessageContent(GetArchiveMessageContentRequest request); + + /// + /// Initiates the asynchronous execution of the GetArchiveMessageContent operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveMessageContent + /// operation. + /// REST API Reference for GetArchiveMessageContent Operation + IAsyncResult BeginGetArchiveMessageContent(GetArchiveMessageContentRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetArchiveMessageContent operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveMessageContent. + /// + /// Returns a GetArchiveMessageContentResult from MailManager. + /// REST API Reference for GetArchiveMessageContent Operation + GetArchiveMessageContentResponse EndGetArchiveMessageContent(IAsyncResult asyncResult); + + #endregion + + #region GetArchiveSearch + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + GetArchiveSearchResponse GetArchiveSearch(GetArchiveSearchRequest request); + + /// + /// Initiates the asynchronous execution of the GetArchiveSearch operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveSearch operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveSearch + /// operation. + /// REST API Reference for GetArchiveSearch Operation + IAsyncResult BeginGetArchiveSearch(GetArchiveSearchRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetArchiveSearch operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveSearch. + /// + /// Returns a GetArchiveSearchResult from MailManager. + /// REST API Reference for GetArchiveSearch Operation + GetArchiveSearchResponse EndGetArchiveSearch(IAsyncResult asyncResult); + + #endregion + + #region GetArchiveSearchResults + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + GetArchiveSearchResultsResponse GetArchiveSearchResults(GetArchiveSearchResultsRequest request); + + /// + /// Initiates the asynchronous execution of the GetArchiveSearchResults operation. + /// + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveSearchResults + /// operation. + /// REST API Reference for GetArchiveSearchResults Operation + IAsyncResult BeginGetArchiveSearchResults(GetArchiveSearchResultsRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetArchiveSearchResults operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetArchiveSearchResults. + /// + /// Returns a GetArchiveSearchResultsResult from MailManager. + /// REST API Reference for GetArchiveSearchResults Operation + GetArchiveSearchResultsResponse EndGetArchiveSearchResults(IAsyncResult asyncResult); + + #endregion + + #region GetIngressPoint + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + GetIngressPointResponse GetIngressPoint(GetIngressPointRequest request); + + /// + /// Initiates the asynchronous execution of the GetIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the GetIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetIngressPoint + /// operation. + /// REST API Reference for GetIngressPoint Operation + IAsyncResult BeginGetIngressPoint(GetIngressPointRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetIngressPoint. + /// + /// Returns a GetIngressPointResult from MailManager. + /// REST API Reference for GetIngressPoint Operation + GetIngressPointResponse EndGetIngressPoint(IAsyncResult asyncResult); + + #endregion + + #region GetRelay + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + GetRelayResponse GetRelay(GetRelayRequest request); + + /// + /// Initiates the asynchronous execution of the GetRelay operation. + /// + /// + /// Container for the necessary parameters to execute the GetRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRelay + /// operation. + /// REST API Reference for GetRelay Operation + IAsyncResult BeginGetRelay(GetRelayRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetRelay. + /// + /// Returns a GetRelayResult from MailManager. + /// REST API Reference for GetRelay Operation + GetRelayResponse EndGetRelay(IAsyncResult asyncResult); + + #endregion + + #region GetRuleSet + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + GetRuleSetResponse GetRuleSet(GetRuleSetRequest request); + + /// + /// Initiates the asynchronous execution of the GetRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the GetRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRuleSet + /// operation. + /// REST API Reference for GetRuleSet Operation + IAsyncResult BeginGetRuleSet(GetRuleSetRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetRuleSet. + /// + /// Returns a GetRuleSetResult from MailManager. + /// REST API Reference for GetRuleSet Operation + GetRuleSetResponse EndGetRuleSet(IAsyncResult asyncResult); + + #endregion + + #region GetTrafficPolicy + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request); + + /// + /// Initiates the asynchronous execution of the GetTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTrafficPolicy + /// operation. + /// REST API Reference for GetTrafficPolicy Operation + IAsyncResult BeginGetTrafficPolicy(GetTrafficPolicyRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the GetTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginGetTrafficPolicy. + /// + /// Returns a GetTrafficPolicyResult from MailManager. + /// REST API Reference for GetTrafficPolicy Operation + GetTrafficPolicyResponse EndGetTrafficPolicy(IAsyncResult asyncResult); + + #endregion + + #region ListAddonInstances + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + ListAddonInstancesResponse ListAddonInstances(ListAddonInstancesRequest request); + + /// + /// Initiates the asynchronous execution of the ListAddonInstances operation. + /// + /// + /// Container for the necessary parameters to execute the ListAddonInstances operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAddonInstances + /// operation. + /// REST API Reference for ListAddonInstances Operation + IAsyncResult BeginListAddonInstances(ListAddonInstancesRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListAddonInstances operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListAddonInstances. + /// + /// Returns a ListAddonInstancesResult from MailManager. + /// REST API Reference for ListAddonInstances Operation + ListAddonInstancesResponse EndListAddonInstances(IAsyncResult asyncResult); + + #endregion + + #region ListAddonSubscriptions + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + ListAddonSubscriptionsResponse ListAddonSubscriptions(ListAddonSubscriptionsRequest request); + + /// + /// Initiates the asynchronous execution of the ListAddonSubscriptions operation. + /// + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAddonSubscriptions + /// operation. + /// REST API Reference for ListAddonSubscriptions Operation + IAsyncResult BeginListAddonSubscriptions(ListAddonSubscriptionsRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListAddonSubscriptions operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListAddonSubscriptions. + /// + /// Returns a ListAddonSubscriptionsResult from MailManager. + /// REST API Reference for ListAddonSubscriptions Operation + ListAddonSubscriptionsResponse EndListAddonSubscriptions(IAsyncResult asyncResult); + + #endregion + + #region ListArchiveExports + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + ListArchiveExportsResponse ListArchiveExports(ListArchiveExportsRequest request); + + /// + /// Initiates the asynchronous execution of the ListArchiveExports operation. + /// + /// + /// Container for the necessary parameters to execute the ListArchiveExports operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchiveExports + /// operation. + /// REST API Reference for ListArchiveExports Operation + IAsyncResult BeginListArchiveExports(ListArchiveExportsRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListArchiveExports operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListArchiveExports. + /// + /// Returns a ListArchiveExportsResult from MailManager. + /// REST API Reference for ListArchiveExports Operation + ListArchiveExportsResponse EndListArchiveExports(IAsyncResult asyncResult); + + #endregion + + #region ListArchives + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + ListArchivesResponse ListArchives(ListArchivesRequest request); + + /// + /// Initiates the asynchronous execution of the ListArchives operation. + /// + /// + /// Container for the necessary parameters to execute the ListArchives operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchives + /// operation. + /// REST API Reference for ListArchives Operation + IAsyncResult BeginListArchives(ListArchivesRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListArchives operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListArchives. + /// + /// Returns a ListArchivesResult from MailManager. + /// REST API Reference for ListArchives Operation + ListArchivesResponse EndListArchives(IAsyncResult asyncResult); + + #endregion + + #region ListArchiveSearches + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + ListArchiveSearchesResponse ListArchiveSearches(ListArchiveSearchesRequest request); + + /// + /// Initiates the asynchronous execution of the ListArchiveSearches operation. + /// + /// + /// Container for the necessary parameters to execute the ListArchiveSearches operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchiveSearches + /// operation. + /// REST API Reference for ListArchiveSearches Operation + IAsyncResult BeginListArchiveSearches(ListArchiveSearchesRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListArchiveSearches operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListArchiveSearches. + /// + /// Returns a ListArchiveSearchesResult from MailManager. + /// REST API Reference for ListArchiveSearches Operation + ListArchiveSearchesResponse EndListArchiveSearches(IAsyncResult asyncResult); + + #endregion + + #region ListIngressPoints + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + ListIngressPointsResponse ListIngressPoints(ListIngressPointsRequest request); + + /// + /// Initiates the asynchronous execution of the ListIngressPoints operation. + /// + /// + /// Container for the necessary parameters to execute the ListIngressPoints operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListIngressPoints + /// operation. + /// REST API Reference for ListIngressPoints Operation + IAsyncResult BeginListIngressPoints(ListIngressPointsRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListIngressPoints operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListIngressPoints. + /// + /// Returns a ListIngressPointsResult from MailManager. + /// REST API Reference for ListIngressPoints Operation + ListIngressPointsResponse EndListIngressPoints(IAsyncResult asyncResult); + + #endregion + + #region ListRelays + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + ListRelaysResponse ListRelays(ListRelaysRequest request); + + /// + /// Initiates the asynchronous execution of the ListRelays operation. + /// + /// + /// Container for the necessary parameters to execute the ListRelays operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRelays + /// operation. + /// REST API Reference for ListRelays Operation + IAsyncResult BeginListRelays(ListRelaysRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListRelays operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListRelays. + /// + /// Returns a ListRelaysResult from MailManager. + /// REST API Reference for ListRelays Operation + ListRelaysResponse EndListRelays(IAsyncResult asyncResult); + + #endregion + + #region ListRuleSets + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + ListRuleSetsResponse ListRuleSets(ListRuleSetsRequest request); + + /// + /// Initiates the asynchronous execution of the ListRuleSets operation. + /// + /// + /// Container for the necessary parameters to execute the ListRuleSets operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRuleSets + /// operation. + /// REST API Reference for ListRuleSets Operation + IAsyncResult BeginListRuleSets(ListRuleSetsRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListRuleSets operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListRuleSets. + /// + /// Returns a ListRuleSetsResult from MailManager. + /// REST API Reference for ListRuleSets Operation + ListRuleSetsResponse EndListRuleSets(IAsyncResult asyncResult); + + #endregion + + #region ListTagsForResource + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); + + /// + /// Initiates the asynchronous execution of the ListTagsForResource operation. + /// + /// + /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource + /// operation. + /// REST API Reference for ListTagsForResource Operation + IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListTagsForResource operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListTagsForResource. + /// + /// Returns a ListTagsForResourceResult from MailManager. + /// REST API Reference for ListTagsForResource Operation + ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); + + #endregion + + #region ListTrafficPolicies + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request); + + /// + /// Initiates the asynchronous execution of the ListTrafficPolicies operation. + /// + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTrafficPolicies + /// operation. + /// REST API Reference for ListTrafficPolicies Operation + IAsyncResult BeginListTrafficPolicies(ListTrafficPoliciesRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListTrafficPolicies operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListTrafficPolicies. + /// + /// Returns a ListTrafficPoliciesResult from MailManager. + /// REST API Reference for ListTrafficPolicies Operation + ListTrafficPoliciesResponse EndListTrafficPolicies(IAsyncResult asyncResult); + + #endregion + + #region StartArchiveExport + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + StartArchiveExportResponse StartArchiveExport(StartArchiveExportRequest request); + + /// + /// Initiates the asynchronous execution of the StartArchiveExport operation. + /// + /// + /// Container for the necessary parameters to execute the StartArchiveExport operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartArchiveExport + /// operation. + /// REST API Reference for StartArchiveExport Operation + IAsyncResult BeginStartArchiveExport(StartArchiveExportRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the StartArchiveExport operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStartArchiveExport. + /// + /// Returns a StartArchiveExportResult from MailManager. + /// REST API Reference for StartArchiveExport Operation + StartArchiveExportResponse EndStartArchiveExport(IAsyncResult asyncResult); + + #endregion + + #region StartArchiveSearch + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + StartArchiveSearchResponse StartArchiveSearch(StartArchiveSearchRequest request); + + /// + /// Initiates the asynchronous execution of the StartArchiveSearch operation. + /// + /// + /// Container for the necessary parameters to execute the StartArchiveSearch operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartArchiveSearch + /// operation. + /// REST API Reference for StartArchiveSearch Operation + IAsyncResult BeginStartArchiveSearch(StartArchiveSearchRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the StartArchiveSearch operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStartArchiveSearch. + /// + /// Returns a StartArchiveSearchResult from MailManager. + /// REST API Reference for StartArchiveSearch Operation + StartArchiveSearchResponse EndStartArchiveSearch(IAsyncResult asyncResult); + + #endregion + + #region StopArchiveExport + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + StopArchiveExportResponse StopArchiveExport(StopArchiveExportRequest request); + + /// + /// Initiates the asynchronous execution of the StopArchiveExport operation. + /// + /// + /// Container for the necessary parameters to execute the StopArchiveExport operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopArchiveExport + /// operation. + /// REST API Reference for StopArchiveExport Operation + IAsyncResult BeginStopArchiveExport(StopArchiveExportRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the StopArchiveExport operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStopArchiveExport. + /// + /// Returns a StopArchiveExportResult from MailManager. + /// REST API Reference for StopArchiveExport Operation + StopArchiveExportResponse EndStopArchiveExport(IAsyncResult asyncResult); + + #endregion + + #region StopArchiveSearch + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + StopArchiveSearchResponse StopArchiveSearch(StopArchiveSearchRequest request); + + /// + /// Initiates the asynchronous execution of the StopArchiveSearch operation. + /// + /// + /// Container for the necessary parameters to execute the StopArchiveSearch operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopArchiveSearch + /// operation. + /// REST API Reference for StopArchiveSearch Operation + IAsyncResult BeginStopArchiveSearch(StopArchiveSearchRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the StopArchiveSearch operation. + /// + /// + /// The IAsyncResult returned by the call to BeginStopArchiveSearch. + /// + /// Returns a StopArchiveSearchResult from MailManager. + /// REST API Reference for StopArchiveSearch Operation + StopArchiveSearchResponse EndStopArchiveSearch(IAsyncResult asyncResult); + + #endregion + + #region TagResource + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + TagResourceResponse TagResource(TagResourceRequest request); + + /// + /// Initiates the asynchronous execution of the TagResource operation. + /// + /// + /// Container for the necessary parameters to execute the TagResource operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource + /// operation. + /// REST API Reference for TagResource Operation + IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the TagResource operation. + /// + /// + /// The IAsyncResult returned by the call to BeginTagResource. + /// + /// Returns a TagResourceResult from MailManager. + /// REST API Reference for TagResource Operation + TagResourceResponse EndTagResource(IAsyncResult asyncResult); + + #endregion + + #region UntagResource + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + UntagResourceResponse UntagResource(UntagResourceRequest request); + + /// + /// Initiates the asynchronous execution of the UntagResource operation. + /// + /// + /// Container for the necessary parameters to execute the UntagResource operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource + /// operation. + /// REST API Reference for UntagResource Operation + IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the UntagResource operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUntagResource. + /// + /// Returns a UntagResourceResult from MailManager. + /// REST API Reference for UntagResource Operation + UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); + + #endregion + + #region UpdateArchive + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request); + + /// + /// Initiates the asynchronous execution of the UpdateArchive operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateArchive operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateArchive + /// operation. + /// REST API Reference for UpdateArchive Operation + IAsyncResult BeginUpdateArchive(UpdateArchiveRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the UpdateArchive operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateArchive. + /// + /// Returns a UpdateArchiveResult from MailManager. + /// REST API Reference for UpdateArchive Operation + UpdateArchiveResponse EndUpdateArchive(IAsyncResult asyncResult); + + #endregion + + #region UpdateIngressPoint + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + UpdateIngressPointResponse UpdateIngressPoint(UpdateIngressPointRequest request); + + /// + /// Initiates the asynchronous execution of the UpdateIngressPoint operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateIngressPoint + /// operation. + /// REST API Reference for UpdateIngressPoint Operation + IAsyncResult BeginUpdateIngressPoint(UpdateIngressPointRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the UpdateIngressPoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateIngressPoint. + /// + /// Returns a UpdateIngressPointResult from MailManager. + /// REST API Reference for UpdateIngressPoint Operation + UpdateIngressPointResponse EndUpdateIngressPoint(IAsyncResult asyncResult); + + #endregion + + #region UpdateRelay + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + UpdateRelayResponse UpdateRelay(UpdateRelayRequest request); + + /// + /// Initiates the asynchronous execution of the UpdateRelay operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateRelay operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateRelay + /// operation. + /// REST API Reference for UpdateRelay Operation + IAsyncResult BeginUpdateRelay(UpdateRelayRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the UpdateRelay operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateRelay. + /// + /// Returns a UpdateRelayResult from MailManager. + /// REST API Reference for UpdateRelay Operation + UpdateRelayResponse EndUpdateRelay(IAsyncResult asyncResult); + + #endregion + + #region UpdateRuleSet + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + UpdateRuleSetResponse UpdateRuleSet(UpdateRuleSetRequest request); + + /// + /// Initiates the asynchronous execution of the UpdateRuleSet operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateRuleSet operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateRuleSet + /// operation. + /// REST API Reference for UpdateRuleSet Operation + IAsyncResult BeginUpdateRuleSet(UpdateRuleSetRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the UpdateRuleSet operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateRuleSet. + /// + /// Returns a UpdateRuleSetResult from MailManager. + /// REST API Reference for UpdateRuleSet Operation + UpdateRuleSetResponse EndUpdateRuleSet(IAsyncResult asyncResult); + + #endregion + + #region UpdateTrafficPolicy + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + UpdateTrafficPolicyResponse UpdateTrafficPolicy(UpdateTrafficPolicyRequest request); + + /// + /// Initiates the asynchronous execution of the UpdateTrafficPolicy operation. + /// + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy operation on AmazonMailManagerClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateTrafficPolicy + /// operation. + /// REST API Reference for UpdateTrafficPolicy Operation + IAsyncResult BeginUpdateTrafficPolicy(UpdateTrafficPolicyRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the UpdateTrafficPolicy operation. + /// + /// + /// The IAsyncResult returned by the call to BeginUpdateTrafficPolicy. + /// + /// Returns a UpdateTrafficPolicyResult from MailManager. + /// REST API Reference for UpdateTrafficPolicy Operation + UpdateTrafficPolicyResponse EndUpdateTrafficPolicy(IAsyncResult asyncResult); + + #endregion + + #region DetermineServiceOperationEndpoint + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// Request for the desired service operation. + /// The resolved endpoint for the given request. + Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/_bcl45/AmazonMailManagerClient.cs b/sdk/src/Services/MailManager/Generated/_bcl45/AmazonMailManagerClient.cs new file mode 100644 index 000000000000..2892b2ba0c53 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/_bcl45/AmazonMailManagerClient.cs @@ -0,0 +1,3101 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Runtime.ExceptionServices; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Net; + +using Amazon.MailManager.Model; +using Amazon.MailManager.Model.Internal.MarshallTransformations; +using Amazon.MailManager.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; + +#pragma warning disable CS1570 +namespace Amazon.MailManager +{ + /// + /// Implementation for accessing MailManager + /// + /// AWS SES Mail Manager API + /// + /// AWS SES Mail Manager API contains operations + /// and data types that comprise the Mail Manager feature of Amazon Simple Email Service. + /// + /// + /// + /// Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen + /// your organization's email infrastructure, simplify email workflow management, and + /// streamline email compliance control. To learn more, see the Mail + /// Manager chapter in the Amazon SES Developer Guide. + /// + /// + /// + /// + public partial class AmazonMailManagerClient : AmazonServiceClient, IAmazonMailManager + { + private static IServiceMetadata serviceMetadata = new AmazonMailManagerMetadata(); + private IMailManagerPaginatorFactory _paginators; + + /// + /// Paginators for the service + /// + public IMailManagerPaginatorFactory Paginators + { + get + { + if (this._paginators == null) + { + this._paginators = new MailManagerPaginatorFactory(this); + } + return this._paginators; + } + } + #region Constructors + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonMailManagerClient() + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMailManagerConfig()) { } + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonMailManagerClient(RegionEndpoint region) + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMailManagerConfig{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(AmazonMailManagerConfig config) + : base(FallbackCredentialsFactory.GetCredentials(config), config){} + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials + /// + /// AWS Credentials + public AmazonMailManagerClient(AWSCredentials credentials) + : this(credentials, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonMailManagerClient(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonMailManagerConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Credentials + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(AWSCredentials credentials, AmazonMailManagerConfig clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMailManagerConfig() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMailManagerConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMailManagerConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMailManagerConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion + + #region Overrides + + /// + /// Creates the signer for the service. + /// + protected override AbstractAWSSigner CreateSigner() + { + return new AWS4Signer(); + } + + /// + /// Customize the pipeline + /// + /// + protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) + { + pipeline.RemoveHandler(); + pipeline.AddHandlerAfter(new AmazonMailManagerEndpointResolver()); + } + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region CreateAddonInstance + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + public virtual CreateAddonInstanceResponse CreateAddonInstance(CreateAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + public virtual Task CreateAddonInstanceAsync(CreateAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonInstanceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateAddonSubscription + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + public virtual CreateAddonSubscriptionResponse CreateAddonSubscription(CreateAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + public virtual Task CreateAddonSubscriptionAsync(CreateAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonSubscriptionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateArchive + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + public virtual CreateArchiveResponse CreateArchive(CreateArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + public virtual Task CreateArchiveAsync(CreateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateIngressPoint + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + public virtual CreateIngressPointResponse CreateIngressPoint(CreateIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + public virtual Task CreateIngressPointAsync(CreateIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateRelay + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + public virtual CreateRelayResponse CreateRelay(CreateRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + public virtual Task CreateRelayAsync(CreateRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateRuleSet + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + public virtual CreateRuleSetResponse CreateRuleSet(CreateRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + public virtual Task CreateRuleSetAsync(CreateRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateTrafficPolicy + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + public virtual CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + public virtual Task CreateTrafficPolicyAsync(CreateTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteAddonInstance + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + public virtual DeleteAddonInstanceResponse DeleteAddonInstance(DeleteAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + public virtual Task DeleteAddonInstanceAsync(DeleteAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonInstanceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteAddonSubscription + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + public virtual DeleteAddonSubscriptionResponse DeleteAddonSubscription(DeleteAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + public virtual Task DeleteAddonSubscriptionAsync(DeleteAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonSubscriptionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteArchive + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + public virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + public virtual Task DeleteArchiveAsync(DeleteArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteIngressPoint + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + public virtual DeleteIngressPointResponse DeleteIngressPoint(DeleteIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + public virtual Task DeleteIngressPointAsync(DeleteIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteRelay + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + public virtual DeleteRelayResponse DeleteRelay(DeleteRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + public virtual Task DeleteRelayAsync(DeleteRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteRuleSet + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + public virtual DeleteRuleSetResponse DeleteRuleSet(DeleteRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + public virtual Task DeleteRuleSetAsync(DeleteRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteTrafficPolicy + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + public virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + public virtual Task DeleteTrafficPolicyAsync(DeleteTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetAddonInstance + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + public virtual GetAddonInstanceResponse GetAddonInstance(GetAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + public virtual Task GetAddonInstanceAsync(GetAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonInstanceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetAddonSubscription + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + public virtual GetAddonSubscriptionResponse GetAddonSubscription(GetAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + public virtual Task GetAddonSubscriptionAsync(GetAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonSubscriptionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchive + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + public virtual GetArchiveResponse GetArchive(GetArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + public virtual Task GetArchiveAsync(GetArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveExport + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + public virtual GetArchiveExportResponse GetArchiveExport(GetArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + public virtual Task GetArchiveExportAsync(GetArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveExportResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveMessage + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + public virtual GetArchiveMessageResponse GetArchiveMessage(GetArchiveMessageRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + public virtual Task GetArchiveMessageAsync(GetArchiveMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveMessageContent + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + public virtual GetArchiveMessageContentResponse GetArchiveMessageContent(GetArchiveMessageContentRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageContentRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageContentResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + public virtual Task GetArchiveMessageContentAsync(GetArchiveMessageContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageContentRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageContentResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveSearch + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + public virtual GetArchiveSearchResponse GetArchiveSearch(GetArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + public virtual Task GetArchiveSearchAsync(GetArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveSearchResults + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + public virtual GetArchiveSearchResultsResponse GetArchiveSearchResults(GetArchiveSearchResultsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchResultsRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResultsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + public virtual Task GetArchiveSearchResultsAsync(GetArchiveSearchResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchResultsRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResultsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetIngressPoint + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + public virtual GetIngressPointResponse GetIngressPoint(GetIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + public virtual Task GetIngressPointAsync(GetIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetRelay + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + public virtual GetRelayResponse GetRelay(GetRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + public virtual Task GetRelayAsync(GetRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetRuleSet + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + public virtual GetRuleSetResponse GetRuleSet(GetRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + public virtual Task GetRuleSetAsync(GetRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetTrafficPolicy + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + public virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + public virtual Task GetTrafficPolicyAsync(GetTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListAddonInstances + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + public virtual ListAddonInstancesResponse ListAddonInstances(ListAddonInstancesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonInstancesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonInstancesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + public virtual Task ListAddonInstancesAsync(ListAddonInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonInstancesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonInstancesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListAddonSubscriptions + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + public virtual ListAddonSubscriptionsResponse ListAddonSubscriptions(ListAddonSubscriptionsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonSubscriptionsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonSubscriptionsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + public virtual Task ListAddonSubscriptionsAsync(ListAddonSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonSubscriptionsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonSubscriptionsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListArchiveExports + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + public virtual ListArchiveExportsResponse ListArchiveExports(ListArchiveExportsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveExportsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveExportsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + public virtual Task ListArchiveExportsAsync(ListArchiveExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveExportsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveExportsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListArchives + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + public virtual ListArchivesResponse ListArchives(ListArchivesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchivesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + public virtual Task ListArchivesAsync(ListArchivesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchivesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListArchiveSearches + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + public virtual ListArchiveSearchesResponse ListArchiveSearches(ListArchiveSearchesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveSearchesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveSearchesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + public virtual Task ListArchiveSearchesAsync(ListArchiveSearchesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveSearchesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveSearchesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListIngressPoints + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + public virtual ListIngressPointsResponse ListIngressPoints(ListIngressPointsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListIngressPointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListIngressPointsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + public virtual Task ListIngressPointsAsync(ListIngressPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListIngressPointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListIngressPointsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListRelays + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + public virtual ListRelaysResponse ListRelays(ListRelaysRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRelaysRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRelaysResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + public virtual Task ListRelaysAsync(ListRelaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRelaysRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRelaysResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListRuleSets + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + public virtual ListRuleSetsResponse ListRuleSets(ListRuleSetsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRuleSetsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRuleSetsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + public virtual Task ListRuleSetsAsync(ListRuleSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRuleSetsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRuleSetsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListTagsForResource + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListTrafficPolicies + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + public virtual ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + public virtual Task ListTrafficPoliciesAsync(ListTrafficPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StartArchiveExport + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + public virtual StartArchiveExportResponse StartArchiveExport(StartArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + public virtual Task StartArchiveExportAsync(StartArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveExportResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StartArchiveSearch + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + public virtual StartArchiveSearchResponse StartArchiveSearch(StartArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + public virtual Task StartArchiveSearchAsync(StartArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveSearchResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StopArchiveExport + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + public virtual StopArchiveExportResponse StopArchiveExport(StopArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + public virtual Task StopArchiveExportAsync(StopArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveExportResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StopArchiveSearch + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + public virtual StopArchiveSearchResponse StopArchiveSearch(StopArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + public virtual Task StopArchiveSearchAsync(StopArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveSearchResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region TagResource + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + public virtual TagResourceResponse TagResource(TagResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = TagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = TagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UntagResource + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateArchive + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + public virtual UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + public virtual Task UpdateArchiveAsync(UpdateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateIngressPoint + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + public virtual UpdateIngressPointResponse UpdateIngressPoint(UpdateIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + public virtual Task UpdateIngressPointAsync(UpdateIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateRelay + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + public virtual UpdateRelayResponse UpdateRelay(UpdateRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + public virtual Task UpdateRelayAsync(UpdateRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateRuleSet + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + public virtual UpdateRuleSetResponse UpdateRuleSet(UpdateRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + public virtual Task UpdateRuleSetAsync(UpdateRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateTrafficPolicy + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + public virtual UpdateTrafficPolicyResponse UpdateTrafficPolicy(UpdateTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + public virtual Task UpdateTrafficPolicyAsync(UpdateTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DetermineServiceOperationEndpoint + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// Request for the desired service operation. + /// The resolved endpoint for the given request. + public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request) + { + var requestContext = new RequestContext(false, CreateSigner()) + { + ClientConfig = Config, + OriginalRequest = request, + Request = new DefaultRequest(request, ServiceMetadata.ServiceId) + }; + + var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null); + var resolver = new AmazonMailManagerEndpointResolver(); + return resolver.GetEndpoint(executionContext); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/_bcl45/IAmazonMailManager.cs b/sdk/src/Services/MailManager/Generated/_bcl45/IAmazonMailManager.cs new file mode 100644 index 000000000000..24f2ecf6cc46 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/_bcl45/IAmazonMailManager.cs @@ -0,0 +1,2257 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.MailManager.Model; + +#pragma warning disable CS1570 +namespace Amazon.MailManager +{ + /// + /// Interface for accessing MailManager + /// + /// AWS SES Mail Manager API + /// + /// AWS SES Mail Manager API contains operations + /// and data types that comprise the Mail Manager feature of Amazon Simple Email Service. + /// + /// + /// + /// Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen + /// your organization's email infrastructure, simplify email workflow management, and + /// streamline email compliance control. To learn more, see the Mail + /// Manager chapter in the Amazon SES Developer Guide. + /// + /// + /// + /// + public partial interface IAmazonMailManager : IAmazonService, IDisposable + { + + /// + /// Paginators for the service + /// + IMailManagerPaginatorFactory Paginators { get; } + + + #region CreateAddonInstance + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + CreateAddonInstanceResponse CreateAddonInstance(CreateAddonInstanceRequest request); + + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + Task CreateAddonInstanceAsync(CreateAddonInstanceRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateAddonSubscription + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + CreateAddonSubscriptionResponse CreateAddonSubscription(CreateAddonSubscriptionRequest request); + + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + Task CreateAddonSubscriptionAsync(CreateAddonSubscriptionRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateArchive + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + CreateArchiveResponse CreateArchive(CreateArchiveRequest request); + + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + Task CreateArchiveAsync(CreateArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateIngressPoint + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + CreateIngressPointResponse CreateIngressPoint(CreateIngressPointRequest request); + + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + Task CreateIngressPointAsync(CreateIngressPointRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateRelay + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + CreateRelayResponse CreateRelay(CreateRelayRequest request); + + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + Task CreateRelayAsync(CreateRelayRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateRuleSet + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + CreateRuleSetResponse CreateRuleSet(CreateRuleSetRequest request); + + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + Task CreateRuleSetAsync(CreateRuleSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateTrafficPolicy + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request); + + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + Task CreateTrafficPolicyAsync(CreateTrafficPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteAddonInstance + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + DeleteAddonInstanceResponse DeleteAddonInstance(DeleteAddonInstanceRequest request); + + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + Task DeleteAddonInstanceAsync(DeleteAddonInstanceRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteAddonSubscription + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + DeleteAddonSubscriptionResponse DeleteAddonSubscription(DeleteAddonSubscriptionRequest request); + + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + Task DeleteAddonSubscriptionAsync(DeleteAddonSubscriptionRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteArchive + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request); + + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + Task DeleteArchiveAsync(DeleteArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteIngressPoint + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + DeleteIngressPointResponse DeleteIngressPoint(DeleteIngressPointRequest request); + + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + Task DeleteIngressPointAsync(DeleteIngressPointRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteRelay + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + DeleteRelayResponse DeleteRelay(DeleteRelayRequest request); + + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + Task DeleteRelayAsync(DeleteRelayRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteRuleSet + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + DeleteRuleSetResponse DeleteRuleSet(DeleteRuleSetRequest request); + + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + Task DeleteRuleSetAsync(DeleteRuleSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteTrafficPolicy + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request); + + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + Task DeleteTrafficPolicyAsync(DeleteTrafficPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetAddonInstance + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + GetAddonInstanceResponse GetAddonInstance(GetAddonInstanceRequest request); + + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + Task GetAddonInstanceAsync(GetAddonInstanceRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetAddonSubscription + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + GetAddonSubscriptionResponse GetAddonSubscription(GetAddonSubscriptionRequest request); + + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + Task GetAddonSubscriptionAsync(GetAddonSubscriptionRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchive + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + GetArchiveResponse GetArchive(GetArchiveRequest request); + + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + Task GetArchiveAsync(GetArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveExport + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + GetArchiveExportResponse GetArchiveExport(GetArchiveExportRequest request); + + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + Task GetArchiveExportAsync(GetArchiveExportRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveMessage + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + GetArchiveMessageResponse GetArchiveMessage(GetArchiveMessageRequest request); + + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + Task GetArchiveMessageAsync(GetArchiveMessageRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveMessageContent + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + GetArchiveMessageContentResponse GetArchiveMessageContent(GetArchiveMessageContentRequest request); + + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + Task GetArchiveMessageContentAsync(GetArchiveMessageContentRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveSearch + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + GetArchiveSearchResponse GetArchiveSearch(GetArchiveSearchRequest request); + + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + Task GetArchiveSearchAsync(GetArchiveSearchRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveSearchResults + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + GetArchiveSearchResultsResponse GetArchiveSearchResults(GetArchiveSearchResultsRequest request); + + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + Task GetArchiveSearchResultsAsync(GetArchiveSearchResultsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetIngressPoint + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + GetIngressPointResponse GetIngressPoint(GetIngressPointRequest request); + + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + Task GetIngressPointAsync(GetIngressPointRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetRelay + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + GetRelayResponse GetRelay(GetRelayRequest request); + + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + Task GetRelayAsync(GetRelayRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetRuleSet + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + GetRuleSetResponse GetRuleSet(GetRuleSetRequest request); + + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + Task GetRuleSetAsync(GetRuleSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetTrafficPolicy + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request); + + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + Task GetTrafficPolicyAsync(GetTrafficPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListAddonInstances + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + ListAddonInstancesResponse ListAddonInstances(ListAddonInstancesRequest request); + + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + Task ListAddonInstancesAsync(ListAddonInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListAddonSubscriptions + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + ListAddonSubscriptionsResponse ListAddonSubscriptions(ListAddonSubscriptionsRequest request); + + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + Task ListAddonSubscriptionsAsync(ListAddonSubscriptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListArchiveExports + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + ListArchiveExportsResponse ListArchiveExports(ListArchiveExportsRequest request); + + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + Task ListArchiveExportsAsync(ListArchiveExportsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListArchives + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + ListArchivesResponse ListArchives(ListArchivesRequest request); + + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + Task ListArchivesAsync(ListArchivesRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListArchiveSearches + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + ListArchiveSearchesResponse ListArchiveSearches(ListArchiveSearchesRequest request); + + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + Task ListArchiveSearchesAsync(ListArchiveSearchesRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListIngressPoints + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + ListIngressPointsResponse ListIngressPoints(ListIngressPointsRequest request); + + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + Task ListIngressPointsAsync(ListIngressPointsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListRelays + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + ListRelaysResponse ListRelays(ListRelaysRequest request); + + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + Task ListRelaysAsync(ListRelaysRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListRuleSets + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + ListRuleSetsResponse ListRuleSets(ListRuleSetsRequest request); + + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + Task ListRuleSetsAsync(ListRuleSetsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListTagsForResource + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); + + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + Task ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListTrafficPolicies + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request); + + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + Task ListTrafficPoliciesAsync(ListTrafficPoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StartArchiveExport + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + StartArchiveExportResponse StartArchiveExport(StartArchiveExportRequest request); + + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + Task StartArchiveExportAsync(StartArchiveExportRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StartArchiveSearch + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + StartArchiveSearchResponse StartArchiveSearch(StartArchiveSearchRequest request); + + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + Task StartArchiveSearchAsync(StartArchiveSearchRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StopArchiveExport + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + StopArchiveExportResponse StopArchiveExport(StopArchiveExportRequest request); + + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + Task StopArchiveExportAsync(StopArchiveExportRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StopArchiveSearch + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + StopArchiveSearchResponse StopArchiveSearch(StopArchiveSearchRequest request); + + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + Task StopArchiveSearchAsync(StopArchiveSearchRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region TagResource + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + TagResourceResponse TagResource(TagResourceRequest request); + + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + Task TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UntagResource + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + UntagResourceResponse UntagResource(UntagResourceRequest request); + + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + Task UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateArchive + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request); + + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + Task UpdateArchiveAsync(UpdateArchiveRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateIngressPoint + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + UpdateIngressPointResponse UpdateIngressPoint(UpdateIngressPointRequest request); + + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + Task UpdateIngressPointAsync(UpdateIngressPointRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateRelay + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + UpdateRelayResponse UpdateRelay(UpdateRelayRequest request); + + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + Task UpdateRelayAsync(UpdateRelayRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateRuleSet + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + UpdateRuleSetResponse UpdateRuleSet(UpdateRuleSetRequest request); + + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + Task UpdateRuleSetAsync(UpdateRuleSetRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateTrafficPolicy + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + UpdateTrafficPolicyResponse UpdateTrafficPolicy(UpdateTrafficPolicyRequest request); + + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + Task UpdateTrafficPolicyAsync(UpdateTrafficPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DetermineServiceOperationEndpoint + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// Request for the desired service operation. + /// The resolved endpoint for the given request. + Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/_netstandard/AmazonMailManagerClient.cs b/sdk/src/Services/MailManager/Generated/_netstandard/AmazonMailManagerClient.cs new file mode 100644 index 000000000000..5260244a5f13 --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/_netstandard/AmazonMailManagerClient.cs @@ -0,0 +1,2341 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Runtime.ExceptionServices; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Net; + +using Amazon.MailManager.Model; +using Amazon.MailManager.Model.Internal.MarshallTransformations; +using Amazon.MailManager.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; + +#pragma warning disable CS1570 +namespace Amazon.MailManager +{ + /// + /// Implementation for accessing MailManager + /// + /// AWS SES Mail Manager API + /// + /// AWS SES Mail Manager API contains operations + /// and data types that comprise the Mail Manager feature of Amazon Simple Email Service. + /// + /// + /// + /// Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen + /// your organization's email infrastructure, simplify email workflow management, and + /// streamline email compliance control. To learn more, see the Mail + /// Manager chapter in the Amazon SES Developer Guide. + /// + /// + /// + /// + public partial class AmazonMailManagerClient : AmazonServiceClient, IAmazonMailManager + { + private static IServiceMetadata serviceMetadata = new AmazonMailManagerMetadata(); + + #region Constructors + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonMailManagerClient() + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMailManagerConfig()) { } + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonMailManagerClient(RegionEndpoint region) + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMailManagerConfig{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonMailManagerClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(AmazonMailManagerConfig config) + : base(FallbackCredentialsFactory.GetCredentials(config), config){} + + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials + /// + /// AWS Credentials + public AmazonMailManagerClient(AWSCredentials credentials) + : this(credentials, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonMailManagerClient(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonMailManagerConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Credentials and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Credentials + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(AWSCredentials credentials, AmazonMailManagerConfig clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMailManagerConfig() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMailManagerConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMailManagerConfig()) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMailManagerConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonMailManagerClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonMailManagerClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonMailManagerClient Configuration Object + public AmazonMailManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMailManagerConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion +#if AWS_ASYNC_ENUMERABLES_API + private IMailManagerPaginatorFactory _paginators; + + /// + /// Paginators for the service + /// + public IMailManagerPaginatorFactory Paginators + { + get + { + if (this._paginators == null) + { + this._paginators = new MailManagerPaginatorFactory(this); + } + return this._paginators; + } + } +#endif + + #region Overrides + + /// + /// Creates the signer for the service. + /// + protected override AbstractAWSSigner CreateSigner() + { + return new AWS4Signer(); + } + + /// + /// Customizes the runtime pipeline. + /// + /// Runtime pipeline for the current client. + protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) + { + pipeline.RemoveHandler(); + pipeline.AddHandlerAfter(new AmazonMailManagerEndpointResolver()); + } + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region CreateAddonInstance + + internal virtual CreateAddonInstanceResponse CreateAddonInstance(CreateAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + public virtual Task CreateAddonInstanceAsync(CreateAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonInstanceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateAddonSubscription + + internal virtual CreateAddonSubscriptionResponse CreateAddonSubscription(CreateAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + public virtual Task CreateAddonSubscriptionAsync(CreateAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateAddonSubscriptionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateArchive + + internal virtual CreateArchiveResponse CreateArchive(CreateArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + public virtual Task CreateArchiveAsync(CreateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateIngressPoint + + internal virtual CreateIngressPointResponse CreateIngressPoint(CreateIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + public virtual Task CreateIngressPointAsync(CreateIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateRelay + + internal virtual CreateRelayResponse CreateRelay(CreateRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + public virtual Task CreateRelayAsync(CreateRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateRuleSet + + internal virtual CreateRuleSetResponse CreateRuleSet(CreateRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + public virtual Task CreateRuleSetAsync(CreateRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region CreateTrafficPolicy + + internal virtual CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + public virtual Task CreateTrafficPolicyAsync(CreateTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteAddonInstance + + internal virtual DeleteAddonInstanceResponse DeleteAddonInstance(DeleteAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + public virtual Task DeleteAddonInstanceAsync(DeleteAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonInstanceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteAddonSubscription + + internal virtual DeleteAddonSubscriptionResponse DeleteAddonSubscription(DeleteAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + public virtual Task DeleteAddonSubscriptionAsync(DeleteAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteAddonSubscriptionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteArchive + + internal virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + public virtual Task DeleteArchiveAsync(DeleteArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteIngressPoint + + internal virtual DeleteIngressPointResponse DeleteIngressPoint(DeleteIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + public virtual Task DeleteIngressPointAsync(DeleteIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteRelay + + internal virtual DeleteRelayResponse DeleteRelay(DeleteRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + public virtual Task DeleteRelayAsync(DeleteRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteRuleSet + + internal virtual DeleteRuleSetResponse DeleteRuleSet(DeleteRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + public virtual Task DeleteRuleSetAsync(DeleteRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteTrafficPolicy + + internal virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + public virtual Task DeleteTrafficPolicyAsync(DeleteTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetAddonInstance + + internal virtual GetAddonInstanceResponse GetAddonInstance(GetAddonInstanceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonInstanceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + public virtual Task GetAddonInstanceAsync(GetAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonInstanceRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonInstanceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetAddonSubscription + + internal virtual GetAddonSubscriptionResponse GetAddonSubscription(GetAddonSubscriptionRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonSubscriptionResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + public virtual Task GetAddonSubscriptionAsync(GetAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetAddonSubscriptionRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetAddonSubscriptionResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchive + + internal virtual GetArchiveResponse GetArchive(GetArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + public virtual Task GetArchiveAsync(GetArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveExport + + internal virtual GetArchiveExportResponse GetArchiveExport(GetArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + public virtual Task GetArchiveExportAsync(GetArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveExportResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveMessage + + internal virtual GetArchiveMessageResponse GetArchiveMessage(GetArchiveMessageRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + public virtual Task GetArchiveMessageAsync(GetArchiveMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveMessageContent + + internal virtual GetArchiveMessageContentResponse GetArchiveMessageContent(GetArchiveMessageContentRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageContentRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageContentResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + public virtual Task GetArchiveMessageContentAsync(GetArchiveMessageContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveMessageContentRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveMessageContentResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveSearch + + internal virtual GetArchiveSearchResponse GetArchiveSearch(GetArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + public virtual Task GetArchiveSearchAsync(GetArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetArchiveSearchResults + + internal virtual GetArchiveSearchResultsResponse GetArchiveSearchResults(GetArchiveSearchResultsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchResultsRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResultsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + public virtual Task GetArchiveSearchResultsAsync(GetArchiveSearchResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetArchiveSearchResultsRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetArchiveSearchResultsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetIngressPoint + + internal virtual GetIngressPointResponse GetIngressPoint(GetIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + public virtual Task GetIngressPointAsync(GetIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetRelay + + internal virtual GetRelayResponse GetRelay(GetRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + public virtual Task GetRelayAsync(GetRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetRuleSet + + internal virtual GetRuleSetResponse GetRuleSet(GetRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + public virtual Task GetRuleSetAsync(GetRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region GetTrafficPolicy + + internal virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + public virtual Task GetTrafficPolicyAsync(GetTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListAddonInstances + + internal virtual ListAddonInstancesResponse ListAddonInstances(ListAddonInstancesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonInstancesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonInstancesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + public virtual Task ListAddonInstancesAsync(ListAddonInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonInstancesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonInstancesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListAddonSubscriptions + + internal virtual ListAddonSubscriptionsResponse ListAddonSubscriptions(ListAddonSubscriptionsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonSubscriptionsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonSubscriptionsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + public virtual Task ListAddonSubscriptionsAsync(ListAddonSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListAddonSubscriptionsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListAddonSubscriptionsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListArchiveExports + + internal virtual ListArchiveExportsResponse ListArchiveExports(ListArchiveExportsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveExportsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveExportsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + public virtual Task ListArchiveExportsAsync(ListArchiveExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveExportsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveExportsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListArchives + + internal virtual ListArchivesResponse ListArchives(ListArchivesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchivesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + public virtual Task ListArchivesAsync(ListArchivesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchivesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchivesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListArchiveSearches + + internal virtual ListArchiveSearchesResponse ListArchiveSearches(ListArchiveSearchesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveSearchesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveSearchesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + public virtual Task ListArchiveSearchesAsync(ListArchiveSearchesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListArchiveSearchesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListArchiveSearchesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListIngressPoints + + internal virtual ListIngressPointsResponse ListIngressPoints(ListIngressPointsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListIngressPointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListIngressPointsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + public virtual Task ListIngressPointsAsync(ListIngressPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListIngressPointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListIngressPointsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListRelays + + internal virtual ListRelaysResponse ListRelays(ListRelaysRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRelaysRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRelaysResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + public virtual Task ListRelaysAsync(ListRelaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRelaysRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRelaysResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListRuleSets + + internal virtual ListRuleSetsResponse ListRuleSets(ListRuleSetsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRuleSetsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRuleSetsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + public virtual Task ListRuleSetsAsync(ListRuleSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListRuleSetsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListRuleSetsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListTagsForResource + + internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListTrafficPolicies + + internal virtual ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + public virtual Task ListTrafficPoliciesAsync(ListTrafficPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StartArchiveExport + + internal virtual StartArchiveExportResponse StartArchiveExport(StartArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + public virtual Task StartArchiveExportAsync(StartArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveExportResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StartArchiveSearch + + internal virtual StartArchiveSearchResponse StartArchiveSearch(StartArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + public virtual Task StartArchiveSearchAsync(StartArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StartArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StartArchiveSearchResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StopArchiveExport + + internal virtual StopArchiveExportResponse StopArchiveExport(StopArchiveExportRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveExportResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + public virtual Task StopArchiveExportAsync(StopArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveExportRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveExportResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region StopArchiveSearch + + internal virtual StopArchiveSearchResponse StopArchiveSearch(StopArchiveSearchRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveSearchResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + public virtual Task StopArchiveSearchAsync(StopArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = StopArchiveSearchRequestMarshaller.Instance; + options.ResponseUnmarshaller = StopArchiveSearchResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region TagResource + + internal virtual TagResourceResponse TagResource(TagResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = TagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = TagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UntagResource + + internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; + options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateArchive + + internal virtual UpdateArchiveResponse UpdateArchive(UpdateArchiveRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + public virtual Task UpdateArchiveAsync(UpdateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateArchiveRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateArchiveResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateIngressPoint + + internal virtual UpdateIngressPointResponse UpdateIngressPoint(UpdateIngressPointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateIngressPointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + public virtual Task UpdateIngressPointAsync(UpdateIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateIngressPointRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateIngressPointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateRelay + + internal virtual UpdateRelayResponse UpdateRelay(UpdateRelayRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRelayResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + public virtual Task UpdateRelayAsync(UpdateRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRelayRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRelayResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateRuleSet + + internal virtual UpdateRuleSetResponse UpdateRuleSet(UpdateRuleSetRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRuleSetResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + public virtual Task UpdateRuleSetAsync(UpdateRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateRuleSetRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateRuleSetResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region UpdateTrafficPolicy + + internal virtual UpdateTrafficPolicyResponse UpdateTrafficPolicy(UpdateTrafficPolicyRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateTrafficPolicyResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + public virtual Task UpdateTrafficPolicyAsync(UpdateTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = UpdateTrafficPolicyRequestMarshaller.Instance; + options.ResponseUnmarshaller = UpdateTrafficPolicyResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DetermineServiceOperationEndpoint + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// Request for the desired service operation. + /// The resolved endpoint for the given request. + public Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request) + { + var requestContext = new RequestContext(false, CreateSigner()) + { + ClientConfig = Config, + OriginalRequest = request, + Request = new DefaultRequest(request, ServiceMetadata.ServiceId) + }; + + var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null); + var resolver = new AmazonMailManagerEndpointResolver(); + return resolver.GetEndpoint(executionContext); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Generated/_netstandard/IAmazonMailManager.cs b/sdk/src/Services/MailManager/Generated/_netstandard/IAmazonMailManager.cs new file mode 100644 index 000000000000..736ff2fe8c4f --- /dev/null +++ b/sdk/src/Services/MailManager/Generated/_netstandard/IAmazonMailManager.cs @@ -0,0 +1,1352 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.MailManager.Model; + +#pragma warning disable CS1570 +namespace Amazon.MailManager +{ + /// + /// Interface for accessing MailManager + /// + /// AWS SES Mail Manager API + /// + /// AWS SES Mail Manager API contains operations + /// and data types that comprise the Mail Manager feature of Amazon Simple Email Service. + /// + /// + /// + /// Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen + /// your organization's email infrastructure, simplify email workflow management, and + /// streamline email compliance control. To learn more, see the Mail + /// Manager chapter in the Amazon SES Developer Guide. + /// + /// + /// + /// + public partial interface IAmazonMailManager : IAmazonService, IDisposable + { +#if AWS_ASYNC_ENUMERABLES_API + /// + /// Paginators for the service + /// + IMailManagerPaginatorFactory Paginators { get; } +#endif + + #region CreateAddonInstance + + + + /// + /// Creates an Add On instance for the subscription indicated in the request. The resulting + /// Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or + /// traffic policy. + /// + /// Container for the necessary parameters to execute the CreateAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonInstance Operation + Task CreateAddonInstanceAsync(CreateAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateAddonSubscription + + + + /// + /// Creates a subscription for an Add On representing the acceptance of its terms of use + /// and additional pricing. The subscription can then be used to create an instance for + /// use in rule sets or traffic policies. + /// + /// Container for the necessary parameters to execute the CreateAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateAddonSubscription Operation + Task CreateAddonSubscriptionAsync(CreateAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateArchive + + + + /// + /// Creates a new email archive resource for storing and retaining emails. + /// + /// Container for the necessary parameters to execute the CreateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateArchive Operation + Task CreateArchiveAsync(CreateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateIngressPoint + + + + /// + /// Provision a new ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the CreateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateIngressPoint Operation + Task CreateIngressPointAsync(CreateIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateRelay + + + + /// + /// Creates a relay resource which can be used in rules to relay incoming emails to defined + /// relay destinations. + /// + /// Container for the necessary parameters to execute the CreateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRelay Operation + Task CreateRelayAsync(CreateRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateRuleSet + + + + /// + /// Provision a new rule set. + /// + /// Container for the necessary parameters to execute the CreateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateRuleSet Operation + Task CreateRuleSetAsync(CreateRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region CreateTrafficPolicy + + + + /// + /// Provision a new traffic policy resource. + /// + /// Container for the necessary parameters to execute the CreateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for CreateTrafficPolicy Operation + Task CreateTrafficPolicyAsync(CreateTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteAddonInstance + + + + /// + /// Deletes an Add On instance. + /// + /// Container for the necessary parameters to execute the DeleteAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonInstance service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonInstance Operation + Task DeleteAddonInstanceAsync(DeleteAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteAddonSubscription + + + + /// + /// Deletes an Add On subscription. + /// + /// Container for the necessary parameters to execute the DeleteAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteAddonSubscription service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteAddonSubscription Operation + Task DeleteAddonSubscriptionAsync(DeleteAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteArchive + + + + /// + /// Initiates deletion of an email archive. This changes the archive state to pending + /// deletion. In this state, no new emails can be added, and existing archived emails + /// become inaccessible (search, export, download). The archive and all of its contents + /// will be permanently deleted 30 days after entering the pending deletion state, regardless + /// of the configured retention period. + /// + /// Container for the necessary parameters to execute the DeleteArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteArchive Operation + Task DeleteArchiveAsync(DeleteArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteIngressPoint + + + + /// + /// Delete an ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the DeleteIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteIngressPoint Operation + Task DeleteIngressPointAsync(DeleteIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteRelay + + + + /// + /// Deletes an existing relay resource. + /// + /// Container for the necessary parameters to execute the DeleteRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRelay Operation + Task DeleteRelayAsync(DeleteRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteRuleSet + + + + /// + /// Delete a rule set. + /// + /// Container for the necessary parameters to execute the DeleteRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteRuleSet Operation + Task DeleteRuleSetAsync(DeleteRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteTrafficPolicy + + + + /// + /// Delete a traffic policy resource. + /// + /// Container for the necessary parameters to execute the DeleteTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for DeleteTrafficPolicy Operation + Task DeleteTrafficPolicyAsync(DeleteTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetAddonInstance + + + + /// + /// Gets detailed information about an Add On instance. + /// + /// Container for the necessary parameters to execute the GetAddonInstance service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonInstance service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonInstance Operation + Task GetAddonInstanceAsync(GetAddonInstanceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetAddonSubscription + + + + /// + /// Gets detailed information about an Add On subscription. + /// + /// Container for the necessary parameters to execute the GetAddonSubscription service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetAddonSubscription service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetAddonSubscription Operation + Task GetAddonSubscriptionAsync(GetAddonSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchive + + + + /// + /// Retrieves the full details and current state of a specified email archive. + /// + /// Container for the necessary parameters to execute the GetArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchive Operation + Task GetArchiveAsync(GetArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveExport + + + + /// + /// Retrieves the details and current status of a specific email archive export job. + /// + /// Container for the necessary parameters to execute the GetArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveExport Operation + Task GetArchiveExportAsync(GetArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveMessage + + + + /// + /// Returns a pre-signed URL that provides temporary download access to the specific email + /// message stored in the archive. + /// + /// Container for the necessary parameters to execute the GetArchiveMessage service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessage service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessage Operation + Task GetArchiveMessageAsync(GetArchiveMessageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveMessageContent + + + + /// + /// Returns the textual content of a specific email message stored in the archive. Attachments + /// are not included. + /// + /// Container for the necessary parameters to execute the GetArchiveMessageContent service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveMessageContent service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveMessageContent Operation + Task GetArchiveMessageContentAsync(GetArchiveMessageContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveSearch + + + + /// + /// Retrieves the details and current status of a specific email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearch Operation + Task GetArchiveSearchAsync(GetArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetArchiveSearchResults + + + + /// + /// Returns the results of a completed email archive search job. + /// + /// Container for the necessary parameters to execute the GetArchiveSearchResults service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetArchiveSearchResults service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetArchiveSearchResults Operation + Task GetArchiveSearchResultsAsync(GetArchiveSearchResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetIngressPoint + + + + /// + /// Fetch ingress endpoint resource attributes. + /// + /// Container for the necessary parameters to execute the GetIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetIngressPoint service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetIngressPoint Operation + Task GetIngressPointAsync(GetIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetRelay + + + + /// + /// Fetch the relay resource and it's attributes. + /// + /// Container for the necessary parameters to execute the GetRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRelay service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRelay Operation + Task GetRelayAsync(GetRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetRuleSet + + + + /// + /// Fetch attributes of a rule set. + /// + /// Container for the necessary parameters to execute the GetRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetRuleSet service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetRuleSet Operation + Task GetRuleSetAsync(GetRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region GetTrafficPolicy + + + + /// + /// Fetch attributes of a traffic policy resource. + /// + /// Container for the necessary parameters to execute the GetTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the GetTrafficPolicy service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for GetTrafficPolicy Operation + Task GetTrafficPolicyAsync(GetTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListAddonInstances + + + + /// + /// Lists all Add On instances in your account. + /// + /// Container for the necessary parameters to execute the ListAddonInstances service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonInstances service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonInstances Operation + Task ListAddonInstancesAsync(ListAddonInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListAddonSubscriptions + + + + /// + /// Lists all Add On subscriptions in your account. + /// + /// Container for the necessary parameters to execute the ListAddonSubscriptions service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListAddonSubscriptions service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListAddonSubscriptions Operation + Task ListAddonSubscriptionsAsync(ListAddonSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListArchiveExports + + + + /// + /// Returns a list of email archive export jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveExports service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveExports service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveExports Operation + Task ListArchiveExportsAsync(ListArchiveExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListArchives + + + + /// + /// Returns a list of all email archives in your account. + /// + /// Container for the necessary parameters to execute the ListArchives service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchives service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchives Operation + Task ListArchivesAsync(ListArchivesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListArchiveSearches + + + + /// + /// Returns a list of email archive search jobs. + /// + /// Container for the necessary parameters to execute the ListArchiveSearches service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListArchiveSearches service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListArchiveSearches Operation + Task ListArchiveSearchesAsync(ListArchiveSearchesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListIngressPoints + + + + /// + /// List all ingress endpoint resources. + /// + /// Container for the necessary parameters to execute the ListIngressPoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListIngressPoints service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListIngressPoints Operation + Task ListIngressPointsAsync(ListIngressPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListRelays + + + + /// + /// Lists all the existing relay resources. + /// + /// Container for the necessary parameters to execute the ListRelays service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRelays service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRelays Operation + Task ListRelaysAsync(ListRelaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListRuleSets + + + + /// + /// List rule sets for this account. + /// + /// Container for the necessary parameters to execute the ListRuleSets service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListRuleSets service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListRuleSets Operation + Task ListRuleSetsAsync(ListRuleSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListTagsForResource + + + + /// + /// Retrieves the list of tags (keys and values) assigned to the resource. + /// + /// Container for the necessary parameters to execute the ListTagsForResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTagsForResource service method, as returned by MailManager. + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTagsForResource Operation + Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListTrafficPolicies + + + + /// + /// List traffic policy resources. + /// + /// Container for the necessary parameters to execute the ListTrafficPolicies service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListTrafficPolicies service method, as returned by MailManager. + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for ListTrafficPolicies Operation + Task ListTrafficPoliciesAsync(ListTrafficPoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StartArchiveExport + + + + /// + /// Initiates an export of emails from the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveExport Operation + Task StartArchiveExportAsync(StartArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StartArchiveSearch + + + + /// + /// Initiates a search across emails in the specified archive. + /// + /// Container for the necessary parameters to execute the StartArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StartArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StartArchiveSearch Operation + Task StartArchiveSearchAsync(StartArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StopArchiveExport + + + + /// + /// Stops an in-progress export of emails from an archive. + /// + /// Container for the necessary parameters to execute the StopArchiveExport service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveExport service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveExport Operation + Task StopArchiveExportAsync(StopArchiveExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region StopArchiveSearch + + + + /// + /// Stops an in-progress archive search job. + /// + /// Container for the necessary parameters to execute the StopArchiveSearch service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the StopArchiveSearch service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for StopArchiveSearch Operation + Task StopArchiveSearchAsync(StopArchiveSearchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region TagResource + + + + /// + /// Adds one or more tags (keys and values) to a specified resource. + /// + /// Container for the necessary parameters to execute the TagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the TagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for TagResource Operation + Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UntagResource + + + + /// + /// Remove one or more tags (keys and values) from a specified resource. + /// + /// Container for the necessary parameters to execute the UntagResource service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UntagResource service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UntagResource Operation + Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateArchive + + + + /// + /// Updates the attributes of an existing email archive. + /// + /// Container for the necessary parameters to execute the UpdateArchive service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateArchive service method, as returned by MailManager. + /// + /// Occurs when a user is denied access to a specific resource or action. + /// + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// Occurs when an operation exceeds a predefined service quota or limit. + /// + /// + /// Occurs when a service's request rate limit is exceeded, resulting in throttling of + /// further requests. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateArchive Operation + Task UpdateArchiveAsync(UpdateArchiveRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateIngressPoint + + + + /// + /// Update attributes of a provisioned ingress endpoint resource. + /// + /// Container for the necessary parameters to execute the UpdateIngressPoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateIngressPoint service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateIngressPoint Operation + Task UpdateIngressPointAsync(UpdateIngressPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateRelay + + + + /// + /// Updates the attributes of an existing relay resource. + /// + /// Container for the necessary parameters to execute the UpdateRelay service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRelay service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRelay Operation + Task UpdateRelayAsync(UpdateRelayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateRuleSet + + + + /// + /// >Update attributes of an already provisioned rule set. + /// + /// Container for the necessary parameters to execute the UpdateRuleSet service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateRuleSet service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateRuleSet Operation + Task UpdateRuleSetAsync(UpdateRuleSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region UpdateTrafficPolicy + + + + /// + /// Update attributes of an already provisioned traffic policy resource. + /// + /// Container for the necessary parameters to execute the UpdateTrafficPolicy service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the UpdateTrafficPolicy service method, as returned by MailManager. + /// + /// The request configuration has conflicts. For details, see the accompanying error message. + /// + /// + /// Occurs when a requested resource is not found. + /// + /// + /// The request validation has failed. For details, see the accompanying error message. + /// + /// REST API Reference for UpdateTrafficPolicy Operation + Task UpdateTrafficPolicyAsync(UpdateTrafficPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DetermineServiceOperationEndpoint + + /// + /// Returns the endpoint that will be used for a particular request. + /// + /// Request for the desired service operation. + /// The resolved endpoint for the given request. + Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(AmazonWebServiceRequest request); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/MailManager/MailManager.sln b/sdk/src/Services/MailManager/MailManager.sln new file mode 100644 index 000000000000..c84908bebd6b --- /dev/null +++ b/sdk/src/Services/MailManager/MailManager.sln @@ -0,0 +1,199 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26730.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.Net35", "../../Core/AWSSDK.Core.Net35.csproj", "{1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.Net45", "../../Core/AWSSDK.Core.Net45.csproj", "{7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.NetStandard", "../../Core/AWSSDK.Core.NetStandard.csproj", "{A855B58E-ED32-40AE-AE8F-054F448B9F2C}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{939EC5C2-8345-43E2-8F97-72EEEBEEA0AB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MailManager", "MailManager", "{604B8285-7589-46B8-90DA-C701E1C0A28F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.Net35", "AWSSDK.MailManager.Net35.csproj", "{E9E34D99-F1C6-4899-825A-DE18E0838A76}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.Net45", "AWSSDK.MailManager.Net45.csproj", "{8D61EA78-B919-4533-9581-1B3C22AC2092}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.MailManager.NetStandard", "AWSSDK.MailManager.NetStandard.csproj", "{FD5E8276-0BA0-4C6A-9A31-A4E2FC06F665}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.MailManager.Net35", "../../../test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net35.csproj", "{E8729588-7B80-4377-BA56-7932C7B2D748}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.MailManager.Net45", "../../../test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net45.csproj", "{E30336D5-28E8-4A91-9AA2-D5C4B34C060E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServiceClientGeneratorLib", "../../../../generator/ServiceClientGeneratorLib/ServiceClientGeneratorLib.csproj", "{7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTestUtilities.Net35", "../../../test/UnitTests/Custom/AWSSDK.UnitTestUtilities.Net35.csproj", "{A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTestUtilities.Net45", "../../../test/UnitTests/Custom/AWSSDK.UnitTestUtilities.Net45.csproj", "{002B183F-E568-49CD-9D06-CBCFF2C2921F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IntegrationTestUtilities.Net35", "../../../test/IntegrationTests/AWSSDK.IntegrationTestUtilities.Net35.csproj", "{924D2906-70D6-4D77-8603-816648B2CCA6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IntegrationTestUtilities.Net45", "../../../test/IntegrationTests/AWSSDK.IntegrationTestUtilities.Net45.csproj", "{7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.CommonTest", "../../../test/Common/AWSSDK.CommonTest.csproj", "{66F78F86-68D7-4538-8EA5-A669A08E1C19}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IntegrationTestDependencies", "IntegrationTestDependencies", "{939EC5C2-8345-43E2-8F97-72EEEBEEA0AC}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.CrtIntegration.Net35", "../../../../extensions/src/AWSSDK.Extensions.CrtIntegration/AWSSDK.Extensions.CrtIntegration.Net35.csproj", "{FEC50F06-A8DA-4912-B987-C6DE6F091337}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.CrtIntegration.Net45", "../../../../extensions/src/AWSSDK.Extensions.CrtIntegration/AWSSDK.Extensions.CrtIntegration.Net45.csproj", "{3FB14595-BD16-4895-A5D2-CC86E3D470E0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IdentityManagement.Net35", "../IdentityManagement/AWSSDK.IdentityManagement.Net35.csproj", "{D1765C1C-0621-4618-948D-0571E6C35602}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SecurityToken.Net35", "../SecurityToken/AWSSDK.SecurityToken.Net35.csproj", "{D03DF3BD-8AB8-49D0-87A0-2985814929E3}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SimpleNotificationService.Net35", "../SimpleNotificationService/AWSSDK.SimpleNotificationService.Net35.csproj", "{B9CDB000-B6B5-45E5-AF18-A0320E445839}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.Net35", "../S3/AWSSDK.S3.Net35.csproj", "{0078B84D-B1DA-4615-8A31-C97B9FAA39D0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IdentityManagement.Net45", "../IdentityManagement/AWSSDK.IdentityManagement.Net45.csproj", "{B2A44291-54EA-4832-AE7B-EE5C26229BEF}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.Net45", "../S3/AWSSDK.S3.Net45.csproj", "{85703209-BC21-456D-820E-90ECAE35FFD1}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SecurityToken.Net45", "../SecurityToken/AWSSDK.SecurityToken.Net45.csproj", "{A8CE7E3F-3F31-4438-B6F1-62527459BD20}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SimpleNotificationService.Net45", "../SimpleNotificationService/AWSSDK.SimpleNotificationService.Net45.csproj", "{A0F77B92-8239-48C6-A978-AB84C2C55483}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Release|Any CPU.Build.0 = Release|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Release|Any CPU.Build.0 = Release|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Release|Any CPU.Build.0 = Release|Any CPU + {E9E34D99-F1C6-4899-825A-DE18E0838A76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E9E34D99-F1C6-4899-825A-DE18E0838A76}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E9E34D99-F1C6-4899-825A-DE18E0838A76}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E9E34D99-F1C6-4899-825A-DE18E0838A76}.Release|Any CPU.Build.0 = Release|Any CPU + {8D61EA78-B919-4533-9581-1B3C22AC2092}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8D61EA78-B919-4533-9581-1B3C22AC2092}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8D61EA78-B919-4533-9581-1B3C22AC2092}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8D61EA78-B919-4533-9581-1B3C22AC2092}.Release|Any CPU.Build.0 = Release|Any CPU + {FD5E8276-0BA0-4C6A-9A31-A4E2FC06F665}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD5E8276-0BA0-4C6A-9A31-A4E2FC06F665}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD5E8276-0BA0-4C6A-9A31-A4E2FC06F665}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD5E8276-0BA0-4C6A-9A31-A4E2FC06F665}.Release|Any CPU.Build.0 = Release|Any CPU + {E8729588-7B80-4377-BA56-7932C7B2D748}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E8729588-7B80-4377-BA56-7932C7B2D748}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E8729588-7B80-4377-BA56-7932C7B2D748}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E8729588-7B80-4377-BA56-7932C7B2D748}.Release|Any CPU.Build.0 = Release|Any CPU + {E30336D5-28E8-4A91-9AA2-D5C4B34C060E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E30336D5-28E8-4A91-9AA2-D5C4B34C060E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E30336D5-28E8-4A91-9AA2-D5C4B34C060E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E30336D5-28E8-4A91-9AA2-D5C4B34C060E}.Release|Any CPU.Build.0 = Release|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Release|Any CPU.Build.0 = Release|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Release|Any CPU.Build.0 = Release|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Release|Any CPU.Build.0 = Release|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Release|Any CPU.Build.0 = Release|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Release|Any CPU.Build.0 = Release|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Debug|Any CPU.Build.0 = Debug|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Release|Any CPU.ActiveCfg = Release|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Release|Any CPU.Build.0 = Release|Any CPU + {FEC50F06-A8DA-4912-B987-C6DE6F091337}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FEC50F06-A8DA-4912-B987-C6DE6F091337}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FEC50F06-A8DA-4912-B987-C6DE6F091337}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FEC50F06-A8DA-4912-B987-C6DE6F091337}.Release|Any CPU.Build.0 = Release|Any CPU + {3FB14595-BD16-4895-A5D2-CC86E3D470E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FB14595-BD16-4895-A5D2-CC86E3D470E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FB14595-BD16-4895-A5D2-CC86E3D470E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FB14595-BD16-4895-A5D2-CC86E3D470E0}.Release|Any CPU.Build.0 = Release|Any CPU + {D1765C1C-0621-4618-948D-0571E6C35602}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D1765C1C-0621-4618-948D-0571E6C35602}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D1765C1C-0621-4618-948D-0571E6C35602}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D1765C1C-0621-4618-948D-0571E6C35602}.Release|Any CPU.Build.0 = Release|Any CPU + {D03DF3BD-8AB8-49D0-87A0-2985814929E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D03DF3BD-8AB8-49D0-87A0-2985814929E3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D03DF3BD-8AB8-49D0-87A0-2985814929E3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D03DF3BD-8AB8-49D0-87A0-2985814929E3}.Release|Any CPU.Build.0 = Release|Any CPU + {B9CDB000-B6B5-45E5-AF18-A0320E445839}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B9CDB000-B6B5-45E5-AF18-A0320E445839}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B9CDB000-B6B5-45E5-AF18-A0320E445839}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B9CDB000-B6B5-45E5-AF18-A0320E445839}.Release|Any CPU.Build.0 = Release|Any CPU + {0078B84D-B1DA-4615-8A31-C97B9FAA39D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0078B84D-B1DA-4615-8A31-C97B9FAA39D0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0078B84D-B1DA-4615-8A31-C97B9FAA39D0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0078B84D-B1DA-4615-8A31-C97B9FAA39D0}.Release|Any CPU.Build.0 = Release|Any CPU + {B2A44291-54EA-4832-AE7B-EE5C26229BEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B2A44291-54EA-4832-AE7B-EE5C26229BEF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B2A44291-54EA-4832-AE7B-EE5C26229BEF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B2A44291-54EA-4832-AE7B-EE5C26229BEF}.Release|Any CPU.Build.0 = Release|Any CPU + {85703209-BC21-456D-820E-90ECAE35FFD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85703209-BC21-456D-820E-90ECAE35FFD1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85703209-BC21-456D-820E-90ECAE35FFD1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85703209-BC21-456D-820E-90ECAE35FFD1}.Release|Any CPU.Build.0 = Release|Any CPU + {A8CE7E3F-3F31-4438-B6F1-62527459BD20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A8CE7E3F-3F31-4438-B6F1-62527459BD20}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A8CE7E3F-3F31-4438-B6F1-62527459BD20}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A8CE7E3F-3F31-4438-B6F1-62527459BD20}.Release|Any CPU.Build.0 = Release|Any CPU + {A0F77B92-8239-48C6-A978-AB84C2C55483}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A0F77B92-8239-48C6-A978-AB84C2C55483}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A0F77B92-8239-48C6-A978-AB84C2C55483}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A0F77B92-8239-48C6-A978-AB84C2C55483}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8} = {9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8} + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43} = {9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8} + {A855B58E-ED32-40AE-AE8F-054F448B9F2C} = {9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8} + {604B8285-7589-46B8-90DA-C701E1C0A28F} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {E9E34D99-F1C6-4899-825A-DE18E0838A76} = {604B8285-7589-46B8-90DA-C701E1C0A28F} + {8D61EA78-B919-4533-9581-1B3C22AC2092} = {604B8285-7589-46B8-90DA-C701E1C0A28F} + {FD5E8276-0BA0-4C6A-9A31-A4E2FC06F665} = {604B8285-7589-46B8-90DA-C701E1C0A28F} + {E8729588-7B80-4377-BA56-7932C7B2D748} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {E30336D5-28E8-4A91-9AA2-D5C4B34C060E} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {002B183F-E568-49CD-9D06-CBCFF2C2921F} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {924D2906-70D6-4D77-8603-816648B2CCA6} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {66F78F86-68D7-4538-8EA5-A669A08E1C19} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {FEC50F06-A8DA-4912-B987-C6DE6F091337} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {3FB14595-BD16-4895-A5D2-CC86E3D470E0} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {D1765C1C-0621-4618-948D-0571E6C35602} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {D03DF3BD-8AB8-49D0-87A0-2985814929E3} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {B9CDB000-B6B5-45E5-AF18-A0320E445839} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {0078B84D-B1DA-4615-8A31-C97B9FAA39D0} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {B2A44291-54EA-4832-AE7B-EE5C26229BEF} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {85703209-BC21-456D-820E-90ECAE35FFD1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {A8CE7E3F-3F31-4438-B6F1-62527459BD20} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {A0F77B92-8239-48C6-A978-AB84C2C55483} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6D8EF57D-60F1-4050-AD9C-766F451D2BE3} + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/sdk/src/Services/MailManager/Properties/AssemblyInfo.cs b/sdk/src/Services/MailManager/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..58b0cf5b040d --- /dev/null +++ b/sdk/src/Services/MailManager/Properties/AssemblyInfo.cs @@ -0,0 +1,51 @@ +using System; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AWSSDK.MailManager")] +#if BCL35 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - MailManager. This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.")] +#elif BCL45 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - MailManager. This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.")] +#elif NETSTANDARD20 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - MailManager. This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.")] +#elif NETCOREAPP3_1 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - MailManager. This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.")] +#elif NET8_0 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET 8.0) - MailManager. This release includes a new Amazon SES feature called Mail Manager, which is a set of email gateway capabilities designed to help customers strengthen their organization's email infrastructure, simplify email workflow management, and streamline email compliance control.")] +#else +#error Unknown platform constant - unable to set correct AssemblyDescription +#endif + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] +[assembly: AssemblyCompany("Amazon.com, Inc")] +[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("3.3")] +[assembly: AssemblyFileVersion("3.3")] + +#if BCL +[assembly: System.Security.AllowPartiallyTrustedCallers] +#endif \ No newline at end of file diff --git a/sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net35.csproj b/sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net35.csproj new file mode 100644 index 000000000000..c668e6f1248b --- /dev/null +++ b/sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net35.csproj @@ -0,0 +1,57 @@ + + + true + net45 + $(DefineConstants);TRACE;BCL;BCL35;AWS_APM_API;DEBUG + portable + true + AWSSDK.UnitTests.MailManager.Net35 + AWSSDK.UnitTests.MailManager.Net35 + + false + false + false + false + false + false + false + false + true + true + + CS1591,CS0612,CS0618 + false + bin\$(Configuration)\net35 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net45.csproj b/sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net45.csproj new file mode 100644 index 000000000000..d6987da6a08d --- /dev/null +++ b/sdk/test/Services/MailManager/UnitTests/AWSSDK.UnitTests.MailManager.Net45.csproj @@ -0,0 +1,53 @@ + + + true + net45 + $(DefineConstants);TRACE;BCL;BCL45;ASYNC_AWAIT;DEBUG + portable + true + AWSSDK.UnitTests.MailManager.Net45 + AWSSDK.UnitTests.MailManager.Net45 + + false + false + false + false + false + false + false + false + true + true + + CS1591,CS0612,CS0618 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/MailManager/UnitTests/Generated/Endpoints/MailManagerEndpointProviderTests.cs b/sdk/test/Services/MailManager/UnitTests/Generated/Endpoints/MailManagerEndpointProviderTests.cs new file mode 100644 index 000000000000..45462ff31694 --- /dev/null +++ b/sdk/test/Services/MailManager/UnitTests/Generated/Endpoints/MailManagerEndpointProviderTests.cs @@ -0,0 +1,406 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the mailmanager-2023-10-17.normal.json service model. + */ + +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Amazon.Runtime; +using Amazon.MailManager.Endpoints; +using Amazon.MailManager.Internal; + +namespace AWSSDK_DotNet35.UnitTests.Endpoints +{ + [TestClass] + public partial class MailManagerEndpointsTests + { + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-east-1 with FIPS enabled and DualStack enabled")] + public void For_region_useast1_with_FIPS_enabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.us-east-1.api.aws", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-east-1 with FIPS enabled and DualStack disabled")] + public void For_region_useast1_with_FIPS_enabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.us-east-1.amazonaws.com", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-east-1 with FIPS disabled and DualStack enabled")] + public void For_region_useast1_with_FIPS_disabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.us-east-1.api.aws", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-east-1 with FIPS disabled and DualStack disabled")] + public void For_region_useast1_with_FIPS_disabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.us-east-1.amazonaws.com", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region cn-north-1 with FIPS enabled and DualStack enabled")] + public void For_region_cnnorth1_with_FIPS_enabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "cn-north-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.cn-north-1.api.amazonwebservices.com.cn", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region cn-north-1 with FIPS enabled and DualStack disabled")] + public void For_region_cnnorth1_with_FIPS_enabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "cn-north-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.cn-north-1.amazonaws.com.cn", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region cn-north-1 with FIPS disabled and DualStack enabled")] + public void For_region_cnnorth1_with_FIPS_disabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "cn-north-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.cn-north-1.api.amazonwebservices.com.cn", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region cn-north-1 with FIPS disabled and DualStack disabled")] + public void For_region_cnnorth1_with_FIPS_disabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "cn-north-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.cn-north-1.amazonaws.com.cn", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-gov-east-1 with FIPS enabled and DualStack enabled")] + public void For_region_usgoveast1_with_FIPS_enabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-gov-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.us-gov-east-1.api.aws", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-gov-east-1 with FIPS enabled and DualStack disabled")] + public void For_region_usgoveast1_with_FIPS_enabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-gov-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.us-gov-east-1.amazonaws.com", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-gov-east-1 with FIPS disabled and DualStack enabled")] + public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-gov-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.us-gov-east-1.api.aws", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-gov-east-1 with FIPS disabled and DualStack disabled")] + public void For_region_usgoveast1_with_FIPS_disabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-gov-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.us-gov-east-1.amazonaws.com", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-iso-east-1 with FIPS enabled and DualStack enabled")] + [ExpectedException(typeof(AmazonClientException), @"FIPS and DualStack are enabled, but this partition does not support one or both")] + public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-iso-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-iso-east-1 with FIPS enabled and DualStack disabled")] + public void For_region_usisoeast1_with_FIPS_enabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-iso-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.us-iso-east-1.c2s.ic.gov", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-iso-east-1 with FIPS disabled and DualStack enabled")] + [ExpectedException(typeof(AmazonClientException), @"DualStack is enabled but this partition does not support DualStack")] + public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-iso-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-iso-east-1 with FIPS disabled and DualStack disabled")] + public void For_region_usisoeast1_with_FIPS_disabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-iso-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.us-iso-east-1.c2s.ic.gov", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-isob-east-1 with FIPS enabled and DualStack enabled")] + [ExpectedException(typeof(AmazonClientException), @"FIPS and DualStack are enabled, but this partition does not support one or both")] + public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-isob-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-isob-east-1 with FIPS enabled and DualStack disabled")] + public void For_region_usisobeast1_with_FIPS_enabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-isob-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager-fips.us-isob-east-1.sc2s.sgov.gov", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-isob-east-1 with FIPS disabled and DualStack enabled")] + [ExpectedException(typeof(AmazonClientException), @"DualStack is enabled but this partition does not support DualStack")] + public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-isob-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = true; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For region us-isob-east-1 with FIPS disabled and DualStack disabled")] + public void For_region_usisobeast1_with_FIPS_disabled_and_DualStack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-isob-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://mail-manager.us-isob-east-1.sc2s.sgov.gov", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For custom endpoint with region set and fips disabled and dualstack disabled")] + public void For_custom_endpoint_with_region_set_and_fips_disabled_and_dualstack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + parameters["Endpoint"] = "https://example.com"; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://example.com", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For custom endpoint with region not set and fips disabled and dualstack disabled")] + public void For_custom_endpoint_with_region_not_set_and_fips_disabled_and_dualstack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = false; + parameters["Endpoint"] = "https://example.com"; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + Assert.AreEqual("https://example.com", endpoint.URL); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For custom endpoint with fips enabled and dualstack disabled")] + [ExpectedException(typeof(AmazonClientException), @"Invalid Configuration: FIPS and custom endpoint are not supported")] + public void For_custom_endpoint_with_fips_enabled_and_dualstack_disabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = true; + parameters["UseDualStack"] = false; + parameters["Endpoint"] = "https://example.com"; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("For custom endpoint with fips disabled and dualstack enabled")] + [ExpectedException(typeof(AmazonClientException), @"Invalid Configuration: Dualstack and custom endpoint are not supported")] + public void For_custom_endpoint_with_fips_disabled_and_dualstack_enabled_Test() + { + var parameters = new MailManagerEndpointParameters(); + parameters["Region"] = "us-east-1"; + parameters["UseFIPS"] = false; + parameters["UseDualStack"] = true; + parameters["Endpoint"] = "https://example.com"; + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Endpoints")] + [TestCategory("MailManager")] + [Description("Missing region")] + [ExpectedException(typeof(AmazonClientException), @"Invalid Configuration: Missing Region")] + public void Missing_region_Test() + { + var parameters = new MailManagerEndpointParameters(); + var endpoint = new AmazonMailManagerEndpointProvider().ResolveEndpoint(parameters); + } + + } +} \ No newline at end of file