feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint/Pinpoint_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/pinpoint/model/RandomSplitEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pinpoint
{
namespace Model
{
/**
* <p>Specifies the settings for a random split activity in a journey. This type of
* activity randomly sends specified percentages of participants down one of as
* many as five paths in a journey, based on conditions that you
* specify.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/RandomSplitActivity">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API RandomSplitActivity
{
public:
RandomSplitActivity();
RandomSplitActivity(Aws::Utils::Json::JsonView jsonValue);
RandomSplitActivity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline const Aws::Vector<RandomSplitEntry>& GetBranches() const{ return m_branches; }
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline void SetBranches(const Aws::Vector<RandomSplitEntry>& value) { m_branchesHasBeenSet = true; m_branches = value; }
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline void SetBranches(Aws::Vector<RandomSplitEntry>&& value) { m_branchesHasBeenSet = true; m_branches = std::move(value); }
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline RandomSplitActivity& WithBranches(const Aws::Vector<RandomSplitEntry>& value) { SetBranches(value); return *this;}
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline RandomSplitActivity& WithBranches(Aws::Vector<RandomSplitEntry>&& value) { SetBranches(std::move(value)); return *this;}
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline RandomSplitActivity& AddBranches(const RandomSplitEntry& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
/**
* <p>The paths for the activity, including the percentage of participants to enter
* each path and the activity to perform for each path.</p>
*/
inline RandomSplitActivity& AddBranches(RandomSplitEntry&& value) { m_branchesHasBeenSet = true; m_branches.push_back(std::move(value)); return *this; }
private:
Aws::Vector<RandomSplitEntry> m_branches;
bool m_branchesHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws