AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
InputSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/InputSourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API InputSource() = default;
32 AWS_RESILIENCEHUBV2_API InputSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API InputSource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
48 InputSource& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
58 inline InputSourceType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(InputSourceType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_identifier;
71
73 bool m_identifierHasBeenSet = false;
74 bool m_typeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace resiliencehubv2
79} // namespace Aws
InputSource & WithIdentifier(IdentifierT &&value)
Definition InputSource.h:48
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API InputSource()=default
const Aws::String & GetIdentifier() const
Definition InputSource.h:40
AWS_RESILIENCEHUBV2_API InputSource(Aws::Utils::Json::JsonView jsonValue)
InputSource & WithType(InputSourceType value)
Definition InputSource.h:64
void SetType(InputSourceType value)
Definition InputSource.h:60
AWS_RESILIENCEHUBV2_API InputSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIdentifier(IdentifierT &&value)
Definition InputSource.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue