AWS SDK for C++  0.14.3
AWS SDK for C++
AsyncCallerContext.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 
16 #pragma once
17 
19 
20 namespace Aws
21 {
22  namespace Client
23  {
30  {
31  public:
36 
40  AsyncCallerContext(const Aws::String& uuid) : m_uuid(uuid) {}
41 
45  AsyncCallerContext(const char* uuid) : m_uuid(uuid) {}
46 
47  virtual ~AsyncCallerContext() {}
48 
52  inline const Aws::String& GetUUID() const { return m_uuid; }
53 
57  inline void SetUUID(const Aws::String& value) { m_uuid = value; }
58 
62  inline void SetUUID(const char* value) { m_uuid.assign(value); }
63 
64  private:
65  Aws::String m_uuid;
66  };
67  }
68 }
69 
const Aws::String & GetUUID() const
AsyncCallerContext(const Aws::String &uuid)
void SetUUID(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).
void SetUUID(const Aws::String &value)