AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Principal.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_LEXMODELSV2_API Principal() = default;
39 AWS_LEXMODELSV2_API Principal(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELSV2_API Principal& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetService() const { return m_service; }
50 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
51 template<typename ServiceT = Aws::String>
52 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
53 template<typename ServiceT = Aws::String>
54 Principal& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template<typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
65 template<typename ArnT = Aws::String>
66 Principal& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68 private:
69
70 Aws::String m_service;
71 bool m_serviceHasBeenSet = false;
72
73 Aws::String m_arn;
74 bool m_arnHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace LexModelsV2
79} // namespace Aws
Principal & WithService(ServiceT &&value)
Definition Principal.h:54
const Aws::String & GetArn() const
Definition Principal.h:61
AWS_LEXMODELSV2_API Principal()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API Principal(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
Principal & WithArn(ArnT &&value)
Definition Principal.h:66
const Aws::String & GetService() const
Definition Principal.h:49
void SetService(ServiceT &&value)
Definition Principal.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue