1 /*
2 * Copyright 2009-2017 Alibaba Cloud 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 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include <alibabacloud/oss/model/InventoryConfiguration.h>
18 #include "utils/Utils.h"
19 #include <alibabacloud/oss/Types.h>
20 #include <sstream>
21
22 using namespace AlibabaCloud::OSS;
23
InventoryFilter()24 InventoryFilter::InventoryFilter()
25 {
26 }
27
InventoryFilter(const std::string & prefix)28 InventoryFilter::InventoryFilter(const std::string& prefix) :
29 prefix_(prefix)
30 {
31 }
32
InventorySSEOSS()33 InventorySSEOSS::InventorySSEOSS()
34 {
35 }
36
InventorySSEKMS()37 InventorySSEKMS::InventorySSEKMS()
38 {
39 }
40
InventorySSEKMS(const std::string & key)41 InventorySSEKMS::InventorySSEKMS(const std::string& key) :
42 keyId_(key)
43 {
44 }
45
InventoryEncryption()46 InventoryEncryption::InventoryEncryption() :
47 inventorySSEOSIsSet_(false),
48 inventorySSEKMSIsSet_(false)
49 {
50 }
51
InventoryEncryption(const InventorySSEOSS & value)52 InventoryEncryption::InventoryEncryption(const InventorySSEOSS& value) :
53 inventorySSEOSS_(value),
54 inventorySSEOSIsSet_(true),
55 inventorySSEKMSIsSet_(false)
56 {
57 }
58
InventoryEncryption(const InventorySSEKMS & value)59 InventoryEncryption::InventoryEncryption(const InventorySSEKMS& value) :
60 inventorySSEOSIsSet_(false),
61 inventorySSEKMS_(value),
62 inventorySSEKMSIsSet_(true)
63 {
64 }
65
InventoryOSSBucketDestination()66 InventoryOSSBucketDestination::InventoryOSSBucketDestination():
67 format_(InventoryFormat::NotSet)
68 {
69 }
70
InventoryConfiguration()71 InventoryConfiguration::InventoryConfiguration():
72 isEnabled_(false),
73 schedule_(InventoryFrequency::NotSet),
74 includedObjectVersions_(InventoryIncludedObjectVersions::NotSet)
75 {
76 }
77