AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PortfolioShareDetail.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicecatalog/model/DescribePortfolioShareType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceCatalog
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SERVICECATALOG_API PortfolioShareDetail() = default;
36 AWS_SERVICECATALOG_API PortfolioShareDetail(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVICECATALOG_API PortfolioShareDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
50 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
51 template<typename PrincipalIdT = Aws::String>
52 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
53 template<typename PrincipalIdT = Aws::String>
54 PortfolioShareDetail& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
56
58
61 inline DescribePortfolioShareType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(DescribePortfolioShareType value) { m_typeHasBeenSet = true; m_type = value; }
64 inline PortfolioShareDetail& WithType(DescribePortfolioShareType value) { SetType(value); return *this;}
66
68
73 inline bool GetAccepted() const { return m_accepted; }
74 inline bool AcceptedHasBeenSet() const { return m_acceptedHasBeenSet; }
75 inline void SetAccepted(bool value) { m_acceptedHasBeenSet = true; m_accepted = value; }
76 inline PortfolioShareDetail& WithAccepted(bool value) { SetAccepted(value); return *this;}
78
80
84 inline bool GetShareTagOptions() const { return m_shareTagOptions; }
85 inline bool ShareTagOptionsHasBeenSet() const { return m_shareTagOptionsHasBeenSet; }
86 inline void SetShareTagOptions(bool value) { m_shareTagOptionsHasBeenSet = true; m_shareTagOptions = value; }
87 inline PortfolioShareDetail& WithShareTagOptions(bool value) { SetShareTagOptions(value); return *this;}
89
91
95 inline bool GetSharePrincipals() const { return m_sharePrincipals; }
96 inline bool SharePrincipalsHasBeenSet() const { return m_sharePrincipalsHasBeenSet; }
97 inline void SetSharePrincipals(bool value) { m_sharePrincipalsHasBeenSet = true; m_sharePrincipals = value; }
98 inline PortfolioShareDetail& WithSharePrincipals(bool value) { SetSharePrincipals(value); return *this;}
100 private:
101
102 Aws::String m_principalId;
103 bool m_principalIdHasBeenSet = false;
104
106 bool m_typeHasBeenSet = false;
107
108 bool m_accepted{false};
109 bool m_acceptedHasBeenSet = false;
110
111 bool m_shareTagOptions{false};
112 bool m_shareTagOptionsHasBeenSet = false;
113
114 bool m_sharePrincipals{false};
115 bool m_sharePrincipalsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ServiceCatalog
120} // namespace Aws
AWS_SERVICECATALOG_API PortfolioShareDetail(Aws::Utils::Json::JsonView jsonValue)
PortfolioShareDetail & WithSharePrincipals(bool value)
PortfolioShareDetail & WithType(DescribePortfolioShareType value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
PortfolioShareDetail & WithAccepted(bool value)
void SetType(DescribePortfolioShareType value)
PortfolioShareDetail & WithShareTagOptions(bool value)
AWS_SERVICECATALOG_API PortfolioShareDetail()=default
PortfolioShareDetail & WithPrincipalId(PrincipalIdT &&value)
AWS_SERVICECATALOG_API PortfolioShareDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue