AWS SDK for C++  0.12.9
AWS SDK for C++
PublicKey.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
17 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CloudTrail
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  PublicKey();
42  PublicKey(const Aws::Utils::Json::JsonValue& jsonValue);
43  PublicKey& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::Utils::ByteBuffer& GetValue() const{ return m_value; }
50 
54  inline void SetValue(const Aws::Utils::ByteBuffer& value) { m_valueHasBeenSet = true; m_value = value; }
55 
59  inline void SetValue(Aws::Utils::ByteBuffer&& value) { m_valueHasBeenSet = true; m_value = value; }
60 
64  inline PublicKey& WithValue(const Aws::Utils::ByteBuffer& value) { SetValue(value); return *this;}
65 
69  inline PublicKey& WithValue(Aws::Utils::ByteBuffer&& value) { SetValue(value); return *this;}
70 
74  inline const Aws::Utils::DateTime& GetValidityStartTime() const{ return m_validityStartTime; }
75 
79  inline void SetValidityStartTime(const Aws::Utils::DateTime& value) { m_validityStartTimeHasBeenSet = true; m_validityStartTime = value; }
80 
84  inline void SetValidityStartTime(Aws::Utils::DateTime&& value) { m_validityStartTimeHasBeenSet = true; m_validityStartTime = value; }
85 
89  inline PublicKey& WithValidityStartTime(const Aws::Utils::DateTime& value) { SetValidityStartTime(value); return *this;}
90 
94  inline PublicKey& WithValidityStartTime(Aws::Utils::DateTime&& value) { SetValidityStartTime(value); return *this;}
95 
99  inline const Aws::Utils::DateTime& GetValidityEndTime() const{ return m_validityEndTime; }
100 
104  inline void SetValidityEndTime(const Aws::Utils::DateTime& value) { m_validityEndTimeHasBeenSet = true; m_validityEndTime = value; }
105 
109  inline void SetValidityEndTime(Aws::Utils::DateTime&& value) { m_validityEndTimeHasBeenSet = true; m_validityEndTime = value; }
110 
114  inline PublicKey& WithValidityEndTime(const Aws::Utils::DateTime& value) { SetValidityEndTime(value); return *this;}
115 
119  inline PublicKey& WithValidityEndTime(Aws::Utils::DateTime&& value) { SetValidityEndTime(value); return *this;}
120 
124  inline const Aws::String& GetFingerprint() const{ return m_fingerprint; }
125 
129  inline void SetFingerprint(const Aws::String& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; }
130 
134  inline void SetFingerprint(Aws::String&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; }
135 
139  inline void SetFingerprint(const char* value) { m_fingerprintHasBeenSet = true; m_fingerprint.assign(value); }
140 
144  inline PublicKey& WithFingerprint(const Aws::String& value) { SetFingerprint(value); return *this;}
145 
149  inline PublicKey& WithFingerprint(Aws::String&& value) { SetFingerprint(value); return *this;}
150 
154  inline PublicKey& WithFingerprint(const char* value) { SetFingerprint(value); return *this;}
155 
156  private:
157  Aws::Utils::ByteBuffer m_value;
158  bool m_valueHasBeenSet;
159  Aws::Utils::DateTime m_validityStartTime;
160  bool m_validityStartTimeHasBeenSet;
161  Aws::Utils::DateTime m_validityEndTime;
162  bool m_validityEndTimeHasBeenSet;
163  Aws::String m_fingerprint;
164  bool m_fingerprintHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace CloudTrail
169 } // namespace Aws
void SetValidityEndTime(const Aws::Utils::DateTime &value)
Definition: PublicKey.h:104
void SetValue(Aws::Utils::ByteBuffer &&value)
Definition: PublicKey.h:59
void SetValidityStartTime(Aws::Utils::DateTime &&value)
Definition: PublicKey.h:84
void SetFingerprint(const char *value)
Definition: PublicKey.h:139
void SetFingerprint(const Aws::String &value)
Definition: PublicKey.h:129
PublicKey & WithFingerprint(const Aws::String &value)
Definition: PublicKey.h:144
PublicKey & WithValidityStartTime(const Aws::Utils::DateTime &value)
Definition: PublicKey.h:89
const Aws::String & GetFingerprint() const
Definition: PublicKey.h:124
PublicKey & WithFingerprint(const char *value)
Definition: PublicKey.h:154
void SetValue(const Aws::Utils::ByteBuffer &value)
Definition: PublicKey.h:54
PublicKey & WithValue(Aws::Utils::ByteBuffer &&value)
Definition: PublicKey.h:69
PublicKey & WithFingerprint(Aws::String &&value)
Definition: PublicKey.h:149
const Aws::Utils::DateTime & GetValidityStartTime() const
Definition: PublicKey.h:74
const Aws::Utils::DateTime & GetValidityEndTime() const
Definition: PublicKey.h:99
void SetValidityEndTime(Aws::Utils::DateTime &&value)
Definition: PublicKey.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDTRAIL_API
void SetFingerprint(Aws::String &&value)
Definition: PublicKey.h:134
PublicKey & WithValidityEndTime(Aws::Utils::DateTime &&value)
Definition: PublicKey.h:119
const Aws::Utils::ByteBuffer & GetValue() const
Definition: PublicKey.h:49
PublicKey & WithValidityStartTime(Aws::Utils::DateTime &&value)
Definition: PublicKey.h:94
PublicKey & WithValidityEndTime(const Aws::Utils::DateTime &value)
Definition: PublicKey.h:114
PublicKey & WithValue(const Aws::Utils::ByteBuffer &value)
Definition: PublicKey.h:64
JSON (JavaScript Object Notation).
void SetValidityStartTime(const Aws::Utils::DateTime &value)
Definition: PublicKey.h:79