AWS SDK for C++  0.12.9
AWS SDK for C++
Telemetry.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Inspector
31 {
32 namespace Model
33 {
34 
41  {
42  public:
43  Telemetry();
44  Telemetry(const Aws::Utils::Json::JsonValue& jsonValue);
45  Telemetry& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
52  inline const Aws::String& GetStatus() const{ return m_status; }
53 
58  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
59 
64  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
65 
70  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
71 
76  inline Telemetry& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
77 
82  inline Telemetry& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
83 
88  inline Telemetry& WithStatus(const char* value) { SetStatus(value); return *this;}
89 
93  inline const Aws::Vector<MessageTypeTelemetry>& GetMessageTypeTelemetries() const{ return m_messageTypeTelemetries; }
94 
98  inline void SetMessageTypeTelemetries(const Aws::Vector<MessageTypeTelemetry>& value) { m_messageTypeTelemetriesHasBeenSet = true; m_messageTypeTelemetries = value; }
99 
103  inline void SetMessageTypeTelemetries(Aws::Vector<MessageTypeTelemetry>&& value) { m_messageTypeTelemetriesHasBeenSet = true; m_messageTypeTelemetries = value; }
104 
108  inline Telemetry& WithMessageTypeTelemetries(const Aws::Vector<MessageTypeTelemetry>& value) { SetMessageTypeTelemetries(value); return *this;}
109 
113  inline Telemetry& WithMessageTypeTelemetries(Aws::Vector<MessageTypeTelemetry>&& value) { SetMessageTypeTelemetries(value); return *this;}
114 
118  inline Telemetry& AddMessageTypeTelemetries(const MessageTypeTelemetry& value) { m_messageTypeTelemetriesHasBeenSet = true; m_messageTypeTelemetries.push_back(value); return *this; }
119 
123  inline Telemetry& AddMessageTypeTelemetries(MessageTypeTelemetry&& value) { m_messageTypeTelemetriesHasBeenSet = true; m_messageTypeTelemetries.push_back(value); return *this; }
124 
125  private:
126  Aws::String m_status;
127  bool m_statusHasBeenSet;
128  Aws::Vector<MessageTypeTelemetry> m_messageTypeTelemetries;
129  bool m_messageTypeTelemetriesHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace Inspector
134 } // namespace Aws
const Aws::Vector< MessageTypeTelemetry > & GetMessageTypeTelemetries() const
Definition: Telemetry.h:93
Telemetry & WithStatus(const Aws::String &value)
Definition: Telemetry.h:76
#define AWS_INSPECTOR_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetStatus(Aws::String &&value)
Definition: Telemetry.h:64
const Aws::String & GetStatus() const
Definition: Telemetry.h:52
Telemetry & AddMessageTypeTelemetries(const MessageTypeTelemetry &value)
Definition: Telemetry.h:118
Telemetry & WithMessageTypeTelemetries(Aws::Vector< MessageTypeTelemetry > &&value)
Definition: Telemetry.h:113
Telemetry & WithStatus(const char *value)
Definition: Telemetry.h:88
Telemetry & WithMessageTypeTelemetries(const Aws::Vector< MessageTypeTelemetry > &value)
Definition: Telemetry.h:108
void SetStatus(const Aws::String &value)
Definition: Telemetry.h:58
void SetStatus(const char *value)
Definition: Telemetry.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Telemetry & AddMessageTypeTelemetries(MessageTypeTelemetry &&value)
Definition: Telemetry.h:123
Telemetry & WithStatus(Aws::String &&value)
Definition: Telemetry.h:82
void SetMessageTypeTelemetries(Aws::Vector< MessageTypeTelemetry > &&value)
Definition: Telemetry.h:103
void SetMessageTypeTelemetries(const Aws::Vector< MessageTypeTelemetry > &value)
Definition: Telemetry.h:98
JSON (JavaScript Object Notation).