AWS SDK for C++  0.14.3
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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ConfigService
31 {
32 namespace Model
33 {
34 
42  {
43  public:
44  SourceDetail();
45  SourceDetail(const Aws::Utils::Json::JsonValue& jsonValue);
46  SourceDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
53  inline const EventSource& GetEventSource() const{ return m_eventSource; }
54 
59  inline void SetEventSource(const EventSource& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
60 
65  inline void SetEventSource(EventSource&& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
66 
71  inline SourceDetail& WithEventSource(const EventSource& value) { SetEventSource(value); return *this;}
72 
77  inline SourceDetail& WithEventSource(EventSource&& value) { SetEventSource(value); return *this;}
78 
89  inline const MessageType& GetMessageType() const{ return m_messageType; }
90 
101  inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
102 
113  inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
114 
125  inline SourceDetail& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
126 
137  inline SourceDetail& WithMessageType(MessageType&& value) { SetMessageType(value); return *this;}
138 
145  inline const MaximumExecutionFrequency& GetMaximumExecutionFrequency() const{ return m_maximumExecutionFrequency; }
146 
153  inline void SetMaximumExecutionFrequency(const MaximumExecutionFrequency& value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = value; }
154 
161  inline void SetMaximumExecutionFrequency(MaximumExecutionFrequency&& value) { m_maximumExecutionFrequencyHasBeenSet = true; m_maximumExecutionFrequency = value; }
162 
169  inline SourceDetail& WithMaximumExecutionFrequency(const MaximumExecutionFrequency& value) { SetMaximumExecutionFrequency(value); return *this;}
170 
177  inline SourceDetail& WithMaximumExecutionFrequency(MaximumExecutionFrequency&& value) { SetMaximumExecutionFrequency(value); return *this;}
178 
179  private:
180  EventSource m_eventSource;
181  bool m_eventSourceHasBeenSet;
182  MessageType m_messageType;
183  bool m_messageTypeHasBeenSet;
184  MaximumExecutionFrequency m_maximumExecutionFrequency;
185  bool m_maximumExecutionFrequencyHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace ConfigService
190 } // namespace Aws
void SetMaximumExecutionFrequency(const MaximumExecutionFrequency &value)
Definition: SourceDetail.h:153
void SetEventSource(EventSource &&value)
Definition: SourceDetail.h:65
SourceDetail & WithMaximumExecutionFrequency(const MaximumExecutionFrequency &value)
Definition: SourceDetail.h:169
const MaximumExecutionFrequency & GetMaximumExecutionFrequency() const
Definition: SourceDetail.h:145
void SetMessageType(const MessageType &value)
Definition: SourceDetail.h:101
void SetEventSource(const EventSource &value)
Definition: SourceDetail.h:59
SourceDetail & WithMaximumExecutionFrequency(MaximumExecutionFrequency &&value)
Definition: SourceDetail.h:177
void SetMessageType(MessageType &&value)
Definition: SourceDetail.h:113
SourceDetail & WithEventSource(const EventSource &value)
Definition: SourceDetail.h:71
const MessageType & GetMessageType() const
Definition: SourceDetail.h:89
SourceDetail & WithMessageType(const MessageType &value)
Definition: SourceDetail.h:125
void SetMaximumExecutionFrequency(MaximumExecutionFrequency &&value)
Definition: SourceDetail.h:161
SourceDetail & WithMessageType(MessageType &&value)
Definition: SourceDetail.h:137
#define AWS_CONFIGSERVICE_API
const EventSource & GetEventSource() const
Definition: SourceDetail.h:53
JSON (JavaScript Object Notation).
SourceDetail & WithEventSource(EventSource &&value)
Definition: SourceDetail.h:77