1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/s3-crt/S3Crt_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Xml
14 {
15   class XmlNode;
16 } // namespace Xml
17 } // namespace Utils
18 namespace S3Crt
19 {
20 namespace Model
21 {
22 
23   /**
24    * <p> A container specifying the time value for S3 Replication Time Control (S3
25    * RTC) and replication metrics <code>EventThreshold</code>. </p><p><h3>See
26    * Also:</h3>   <a
27    * href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ReplicationTimeValue">AWS
28    * API Reference</a></p>
29    */
30   class AWS_S3CRT_API ReplicationTimeValue
31   {
32   public:
33     ReplicationTimeValue();
34     ReplicationTimeValue(const Aws::Utils::Xml::XmlNode& xmlNode);
35     ReplicationTimeValue& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36 
37     void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38 
39 
40     /**
41      * <p> Contains an integer specifying time in minutes. </p> <p> Valid value: 15</p>
42      */
GetMinutes()43     inline int GetMinutes() const{ return m_minutes; }
44 
45     /**
46      * <p> Contains an integer specifying time in minutes. </p> <p> Valid value: 15</p>
47      */
MinutesHasBeenSet()48     inline bool MinutesHasBeenSet() const { return m_minutesHasBeenSet; }
49 
50     /**
51      * <p> Contains an integer specifying time in minutes. </p> <p> Valid value: 15</p>
52      */
SetMinutes(int value)53     inline void SetMinutes(int value) { m_minutesHasBeenSet = true; m_minutes = value; }
54 
55     /**
56      * <p> Contains an integer specifying time in minutes. </p> <p> Valid value: 15</p>
57      */
WithMinutes(int value)58     inline ReplicationTimeValue& WithMinutes(int value) { SetMinutes(value); return *this;}
59 
60   private:
61 
62     int m_minutes;
63     bool m_minutesHasBeenSet;
64   };
65 
66 } // namespace Model
67 } // namespace S3Crt
68 } // namespace Aws
69