AWS SDK for C++  0.12.9
AWS SDK for C++
GetVaultLockResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 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 #pragma once
18 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace Glacier
32 {
33 namespace Model
34 {
39  {
40  public:
44 
49  inline const Aws::String& GetPolicy() const{ return m_policy; }
50 
55  inline void SetPolicy(const Aws::String& value) { m_policy = value; }
56 
61  inline void SetPolicy(Aws::String&& value) { m_policy = value; }
62 
67  inline void SetPolicy(const char* value) { m_policy.assign(value); }
68 
73  inline GetVaultLockResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
74 
79  inline GetVaultLockResult& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
80 
85  inline GetVaultLockResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
86 
91  inline const Aws::String& GetState() const{ return m_state; }
92 
97  inline void SetState(const Aws::String& value) { m_state = value; }
98 
103  inline void SetState(Aws::String&& value) { m_state = value; }
104 
109  inline void SetState(const char* value) { m_state.assign(value); }
110 
115  inline GetVaultLockResult& WithState(const Aws::String& value) { SetState(value); return *this;}
116 
121  inline GetVaultLockResult& WithState(Aws::String&& value) { SetState(value); return *this;}
122 
127  inline GetVaultLockResult& WithState(const char* value) { SetState(value); return *this;}
128 
133  inline const Aws::String& GetExpirationDate() const{ return m_expirationDate; }
134 
139  inline void SetExpirationDate(const Aws::String& value) { m_expirationDate = value; }
140 
145  inline void SetExpirationDate(Aws::String&& value) { m_expirationDate = value; }
146 
151  inline void SetExpirationDate(const char* value) { m_expirationDate.assign(value); }
152 
157  inline GetVaultLockResult& WithExpirationDate(const Aws::String& value) { SetExpirationDate(value); return *this;}
158 
163  inline GetVaultLockResult& WithExpirationDate(Aws::String&& value) { SetExpirationDate(value); return *this;}
164 
169  inline GetVaultLockResult& WithExpirationDate(const char* value) { SetExpirationDate(value); return *this;}
170 
175  inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
176 
181  inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; }
182 
187  inline void SetCreationDate(Aws::String&& value) { m_creationDate = value; }
188 
193  inline void SetCreationDate(const char* value) { m_creationDate.assign(value); }
194 
199  inline GetVaultLockResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
200 
205  inline GetVaultLockResult& WithCreationDate(Aws::String&& value) { SetCreationDate(value); return *this;}
206 
211  inline GetVaultLockResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
212 
213  private:
214  Aws::String m_policy;
215  Aws::String m_state;
216  Aws::String m_expirationDate;
217  Aws::String m_creationDate;
218  };
219 
220 } // namespace Model
221 } // namespace Glacier
222 } // namespace Aws
const Aws::String & GetCreationDate() const
GetVaultLockResult & WithPolicy(const char *value)
void SetState(const Aws::String &value)
GetVaultLockResult & WithPolicy(Aws::String &&value)
GetVaultLockResult & WithCreationDate(const char *value)
void SetExpirationDate(const Aws::String &value)
void SetPolicy(const Aws::String &value)
const Aws::String & GetExpirationDate() const
const Aws::String & GetState() const
GetVaultLockResult & WithState(const Aws::String &value)
GetVaultLockResult & WithCreationDate(const Aws::String &value)
GetVaultLockResult & WithExpirationDate(const Aws::String &value)
void SetExpirationDate(Aws::String &&value)
GetVaultLockResult & WithExpirationDate(const char *value)
#define AWS_GLACIER_API
const Aws::String & GetPolicy() const
GetVaultLockResult & WithState(Aws::String &&value)
GetVaultLockResult & WithCreationDate(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetVaultLockResult & WithState(const char *value)
GetVaultLockResult & WithExpirationDate(Aws::String &&value)
GetVaultLockResult & WithPolicy(const Aws::String &value)
void SetCreationDate(const Aws::String &value)
JSON (JavaScript Object Notation).