AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ShareDetails.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicecatalog/model/ShareError.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ServiceCatalog
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SERVICECATALOG_API ShareDetails();
38 AWS_SERVICECATALOG_API ShareDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICECATALOG_API ShareDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetSuccessfulShares() const{ return m_successfulShares; }
48 inline bool SuccessfulSharesHasBeenSet() const { return m_successfulSharesHasBeenSet; }
49 inline void SetSuccessfulShares(const Aws::Vector<Aws::String>& value) { m_successfulSharesHasBeenSet = true; m_successfulShares = value; }
50 inline void SetSuccessfulShares(Aws::Vector<Aws::String>&& value) { m_successfulSharesHasBeenSet = true; m_successfulShares = std::move(value); }
52 inline ShareDetails& WithSuccessfulShares(Aws::Vector<Aws::String>&& value) { SetSuccessfulShares(std::move(value)); return *this;}
53 inline ShareDetails& AddSuccessfulShares(const Aws::String& value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(value); return *this; }
54 inline ShareDetails& AddSuccessfulShares(Aws::String&& value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(std::move(value)); return *this; }
55 inline ShareDetails& AddSuccessfulShares(const char* value) { m_successfulSharesHasBeenSet = true; m_successfulShares.push_back(value); return *this; }
57
59
62 inline const Aws::Vector<ShareError>& GetShareErrors() const{ return m_shareErrors; }
63 inline bool ShareErrorsHasBeenSet() const { return m_shareErrorsHasBeenSet; }
64 inline void SetShareErrors(const Aws::Vector<ShareError>& value) { m_shareErrorsHasBeenSet = true; m_shareErrors = value; }
65 inline void SetShareErrors(Aws::Vector<ShareError>&& value) { m_shareErrorsHasBeenSet = true; m_shareErrors = std::move(value); }
66 inline ShareDetails& WithShareErrors(const Aws::Vector<ShareError>& value) { SetShareErrors(value); return *this;}
67 inline ShareDetails& WithShareErrors(Aws::Vector<ShareError>&& value) { SetShareErrors(std::move(value)); return *this;}
68 inline ShareDetails& AddShareErrors(const ShareError& value) { m_shareErrorsHasBeenSet = true; m_shareErrors.push_back(value); return *this; }
69 inline ShareDetails& AddShareErrors(ShareError&& value) { m_shareErrorsHasBeenSet = true; m_shareErrors.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_successfulShares;
74 bool m_successfulSharesHasBeenSet = false;
75
76 Aws::Vector<ShareError> m_shareErrors;
77 bool m_shareErrorsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace ServiceCatalog
82} // namespace Aws
void SetShareErrors(const Aws::Vector< ShareError > &value)
ShareDetails & WithShareErrors(const Aws::Vector< ShareError > &value)
void SetSuccessfulShares(const Aws::Vector< Aws::String > &value)
void SetShareErrors(Aws::Vector< ShareError > &&value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ShareDetails & AddSuccessfulShares(const char *value)
const Aws::Vector< Aws::String > & GetSuccessfulShares() const
ShareDetails & AddShareErrors(const ShareError &value)
AWS_SERVICECATALOG_API ShareDetails(Aws::Utils::Json::JsonView jsonValue)
ShareDetails & AddSuccessfulShares(Aws::String &&value)
ShareDetails & AddSuccessfulShares(const Aws::String &value)
const Aws::Vector< ShareError > & GetShareErrors() const
ShareDetails & WithShareErrors(Aws::Vector< ShareError > &&value)
void SetSuccessfulShares(Aws::Vector< Aws::String > &&value)
AWS_SERVICECATALOG_API ShareDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICECATALOG_API ShareDetails()
ShareDetails & AddShareErrors(ShareError &&value)
ShareDetails & WithSuccessfulShares(const Aws::Vector< Aws::String > &value)
ShareDetails & WithSuccessfulShares(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue