AWS SDK for C++  0.12.9
AWS SDK for C++
SourceDetail.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ConfigService
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  SourceDetail();
42  SourceDetail(const Aws::Utils::Json::JsonValue& jsonValue);
43  SourceDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const EventSource& GetEventSource() const{ return m_eventSource; }
51 
56  inline void SetEventSource(const EventSource& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
57 
62  inline void SetEventSource(EventSource&& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
63 
68  inline SourceDetail& WithEventSource(const EventSource& value) { SetEventSource(value); return *this;}
69 
74  inline SourceDetail& WithEventSource(EventSource&& value) { SetEventSource(value); return *this;}
75 
84  inline const MessageType& GetMessageType() const{ return m_messageType; }
85 
94  inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
95 
104  inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
105 
114  inline SourceDetail& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
115 
124  inline SourceDetail& WithMessageType(MessageType&& value) { SetMessageType(value); return *this;}
125 
126  private:
127  EventSource m_eventSource;
128  bool m_eventSourceHasBeenSet;
129  MessageType m_messageType;
130  bool m_messageTypeHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace ConfigService
135 } // namespace Aws
void SetEventSource(EventSource &&value)
Definition: SourceDetail.h:62
void SetMessageType(const MessageType &value)
Definition: SourceDetail.h:94
void SetEventSource(const EventSource &value)
Definition: SourceDetail.h:56
void SetMessageType(MessageType &&value)
Definition: SourceDetail.h:104
SourceDetail & WithEventSource(const EventSource &value)
Definition: SourceDetail.h:68
const MessageType & GetMessageType() const
Definition: SourceDetail.h:84
SourceDetail & WithMessageType(const MessageType &value)
Definition: SourceDetail.h:114
SourceDetail & WithMessageType(MessageType &&value)
Definition: SourceDetail.h:124
#define AWS_CONFIGSERVICE_API
const EventSource & GetEventSource() const
Definition: SourceDetail.h:50
JSON (JavaScript Object Notation).
SourceDetail & WithEventSource(EventSource &&value)
Definition: SourceDetail.h:74