1+ /*
2+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License").
5+ * You may not use this file except in compliance with the License.
6+ * A copy of the License is located at
7+ *
8+ * http://aws.amazon.com/apache2.0
9+ *
10+ * or in the "license" file accompanying this file. This file is distributed
11+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+ * express or implied. See the License for the specific language governing
13+ * permissions and limitations under the License.
14+ */
15+
16+ /*
17+ * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model.
18+ */
19+ using System ;
20+ using System . Collections . Generic ;
21+ using System . Globalization ;
22+ using System . IO ;
23+ using System . Text ;
24+ using System . Xml . Serialization ;
25+
26+ using Amazon . S3 . Model ;
27+ using Amazon . Runtime ;
28+ using Amazon . Runtime . Internal ;
29+ using Amazon . Runtime . Internal . Transform ;
30+ using Amazon . Runtime . Internal . Util ;
31+ using System . Xml ;
32+
33+ #pragma warning disable CS0612 , CS0618
34+ namespace Amazon . S3 . Model . Internal . MarshallTransformations
35+ {
36+ /// <summary>
37+ /// ListBucketAnalyticsConfigurations Request Marshaller
38+ /// </summary>
39+ public partial class ListBucketAnalyticsConfigurationsRequestMarshaller : IMarshaller < IRequest , ListBucketAnalyticsConfigurationsRequest > , IMarshaller < IRequest , AmazonWebServiceRequest >
40+ {
41+ /// <summary>
42+ /// Marshaller the request object to the HTTP request.
43+ /// </summary>
44+ /// <param name="input"></param>
45+ /// <returns></returns>
46+ public IRequest Marshall ( AmazonWebServiceRequest input )
47+ {
48+ return this . Marshall ( ( ListBucketAnalyticsConfigurationsRequest ) input ) ;
49+ }
50+
51+ /// <summary>
52+ /// Marshaller the request object to the HTTP request.
53+ /// </summary>
54+ /// <param name="publicRequest"></param>
55+ /// <returns></returns>
56+ public IRequest Marshall ( ListBucketAnalyticsConfigurationsRequest publicRequest )
57+ {
58+ var request = new DefaultRequest ( publicRequest , "Amazon.S3" ) ;
59+ PreMarshallCustomization ( request , publicRequest ) ;
60+ request . HttpMethod = "GET" ;
61+ request . AddSubResource ( "analytics" ) ;
62+
63+ if ( publicRequest . IsSetExpectedBucketOwner ( ) )
64+ {
65+ request . Headers [ "x-amz-expected-bucket-owner" ] = publicRequest . ExpectedBucketOwner ;
66+ }
67+ if ( string . IsNullOrEmpty ( publicRequest . BucketName ) )
68+ throw new System . ArgumentException ( "BucketName is a required property and must be set before making this call." , "ListBucketAnalyticsConfigurationsRequest.BucketName" ) ;
69+
70+ if ( publicRequest . IsSetContinuationToken ( ) )
71+ request . Parameters . Add ( "continuation-token" , StringUtils . FromString ( publicRequest . ContinuationToken ) ) ;
72+ request . ResourcePath = "/" ;
73+
74+ PostMarshallCustomization ( request , publicRequest ) ;
75+ request . UseQueryString = true ;
76+ return request ;
77+ }
78+ private static ListBucketAnalyticsConfigurationsRequestMarshaller _instance = new ListBucketAnalyticsConfigurationsRequestMarshaller ( ) ;
79+
80+ internal static ListBucketAnalyticsConfigurationsRequestMarshaller GetInstance ( )
81+ {
82+ return _instance ;
83+ }
84+
85+ /// <summary>
86+ /// Gets the singleton.
87+ /// </summary>
88+ public static ListBucketAnalyticsConfigurationsRequestMarshaller Instance
89+ {
90+ get
91+ {
92+ return _instance ;
93+ }
94+ }
95+
96+ partial void PostMarshallCustomization ( DefaultRequest defaultRequest , ListBucketAnalyticsConfigurationsRequest publicRequest ) ;
97+ partial void PreMarshallCustomization ( DefaultRequest defaultRequest , ListBucketAnalyticsConfigurationsRequest publicRequest ) ;
98+ }
99+ }
0 commit comments