AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
RestrictedPeriods.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/RestrictedPeriod.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaignsV2 {
21namespace Model {
22
29 public:
30 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods() = default;
31 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::Vector<RestrictedPeriod>& GetRestrictedPeriodList() const { return m_restrictedPeriodList; }
38 inline bool RestrictedPeriodListHasBeenSet() const { return m_restrictedPeriodListHasBeenSet; }
39 template <typename RestrictedPeriodListT = Aws::Vector<RestrictedPeriod>>
40 void SetRestrictedPeriodList(RestrictedPeriodListT&& value) {
41 m_restrictedPeriodListHasBeenSet = true;
42 m_restrictedPeriodList = std::forward<RestrictedPeriodListT>(value);
43 }
44 template <typename RestrictedPeriodListT = Aws::Vector<RestrictedPeriod>>
45 RestrictedPeriods& WithRestrictedPeriodList(RestrictedPeriodListT&& value) {
46 SetRestrictedPeriodList(std::forward<RestrictedPeriodListT>(value));
47 return *this;
48 }
49 template <typename RestrictedPeriodListT = RestrictedPeriod>
50 RestrictedPeriods& AddRestrictedPeriodList(RestrictedPeriodListT&& value) {
51 m_restrictedPeriodListHasBeenSet = true;
52 m_restrictedPeriodList.emplace_back(std::forward<RestrictedPeriodListT>(value));
53 return *this;
54 }
56 private:
57 Aws::Vector<RestrictedPeriod> m_restrictedPeriodList;
58 bool m_restrictedPeriodListHasBeenSet = false;
59};
60
61} // namespace Model
62} // namespace ConnectCampaignsV2
63} // namespace Aws
void SetRestrictedPeriodList(RestrictedPeriodListT &&value)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods & operator=(Aws::Utils::Json::JsonView jsonValue)
RestrictedPeriods & WithRestrictedPeriodList(RestrictedPeriodListT &&value)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods()=default
const Aws::Vector< RestrictedPeriod > & GetRestrictedPeriodList() const
RestrictedPeriods & AddRestrictedPeriodList(RestrictedPeriodListT &&value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue