AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
LocationIdentifier.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/CodeLocation.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
31 public:
32 AWS_APPLICATIONSIGNALS_API LocationIdentifier() = default;
33 AWS_APPLICATIONSIGNALS_API LocationIdentifier(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API LocationIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const CodeLocation& GetCodeLocation() const { return m_codeLocation; }
42 inline bool CodeLocationHasBeenSet() const { return m_codeLocationHasBeenSet; }
43 template <typename CodeLocationT = CodeLocation>
44 void SetCodeLocation(CodeLocationT&& value) {
45 m_codeLocationHasBeenSet = true;
46 m_codeLocation = std::forward<CodeLocationT>(value);
47 }
48 template <typename CodeLocationT = CodeLocation>
49 LocationIdentifier& WithCodeLocation(CodeLocationT&& value) {
50 SetCodeLocation(std::forward<CodeLocationT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLocationHash() const { return m_locationHash; }
60 inline bool LocationHashHasBeenSet() const { return m_locationHashHasBeenSet; }
61 template <typename LocationHashT = Aws::String>
62 void SetLocationHash(LocationHashT&& value) {
63 m_locationHashHasBeenSet = true;
64 m_locationHash = std::forward<LocationHashT>(value);
65 }
66 template <typename LocationHashT = Aws::String>
67 LocationIdentifier& WithLocationHash(LocationHashT&& value) {
68 SetLocationHash(std::forward<LocationHashT>(value));
69 return *this;
70 }
72 private:
73 CodeLocation m_codeLocation;
74
75 Aws::String m_locationHash;
76 bool m_codeLocationHasBeenSet = false;
77 bool m_locationHashHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ApplicationSignals
82} // namespace Aws
LocationIdentifier & WithCodeLocation(CodeLocationT &&value)
LocationIdentifier & WithLocationHash(LocationHashT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API LocationIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API LocationIdentifier()=default
AWS_APPLICATIONSIGNALS_API LocationIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue