AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
52 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
53 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
54 inline PortfolioShareDetail& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
55 inline PortfolioShareDetail& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
56 inline PortfolioShareDetail& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
58
60
63 inline const DescribePortfolioShareType& GetType() const{ return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(const DescribePortfolioShareType& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(DescribePortfolioShareType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline PortfolioShareDetail& WithType(const DescribePortfolioShareType& value) { SetType(value); return *this;}
68 inline PortfolioShareDetail& WithType(DescribePortfolioShareType&& value) { SetType(std::move(value)); return *this;}
70
72
77 inline bool GetAccepted() const{ return m_accepted; }
78 inline bool AcceptedHasBeenSet() const { return m_acceptedHasBeenSet; }
79 inline void SetAccepted(bool value) { m_acceptedHasBeenSet = true; m_accepted = value; }
80 inline PortfolioShareDetail& WithAccepted(bool value) { SetAccepted(value); return *this;}
82
84
88 inline bool GetShareTagOptions() const{ return m_shareTagOptions; }
89 inline bool ShareTagOptionsHasBeenSet() const { return m_shareTagOptionsHasBeenSet; }
90 inline void SetShareTagOptions(bool value) { m_shareTagOptionsHasBeenSet = true; m_shareTagOptions = value; }
91 inline PortfolioShareDetail& WithShareTagOptions(bool value) { SetShareTagOptions(value); return *this;}
93
95
99 inline bool GetSharePrincipals() const{ return m_sharePrincipals; }
100 inline bool SharePrincipalsHasBeenSet() const { return m_sharePrincipalsHasBeenSet; }
101 inline void SetSharePrincipals(bool value) { m_sharePrincipalsHasBeenSet = true; m_sharePrincipals = value; }
102 inline PortfolioShareDetail& WithSharePrincipals(bool value) { SetSharePrincipals(value); return *this;}
104 private:
105
106 Aws::String m_principalId;
107 bool m_principalIdHasBeenSet = false;
108
110 bool m_typeHasBeenSet = false;
111
112 bool m_accepted;
113 bool m_acceptedHasBeenSet = false;
114
115 bool m_shareTagOptions;
116 bool m_shareTagOptionsHasBeenSet = false;
117
118 bool m_sharePrincipals;
119 bool m_sharePrincipalsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace ServiceCatalog
124} // namespace Aws
PortfolioShareDetail & WithType(DescribePortfolioShareType &&value)
PortfolioShareDetail & WithPrincipalId(const char *value)
AWS_SERVICECATALOG_API PortfolioShareDetail(Aws::Utils::Json::JsonView jsonValue)
PortfolioShareDetail & WithSharePrincipals(bool value)
void SetType(DescribePortfolioShareType &&value)
PortfolioShareDetail & WithPrincipalId(const Aws::String &value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
PortfolioShareDetail & WithAccepted(bool value)
PortfolioShareDetail & WithPrincipalId(Aws::String &&value)
PortfolioShareDetail & WithType(const DescribePortfolioShareType &value)
PortfolioShareDetail & WithShareTagOptions(bool value)
void SetType(const DescribePortfolioShareType &value)
AWS_SERVICECATALOG_API PortfolioShareDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const DescribePortfolioShareType & GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue