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,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/chime/Chime_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/chime/model/Tag.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Chime
{
namespace Model
{
/**
* <p>The Amazon Chime SDK attendee fields to create, used with the
* BatchCreateAttendee action.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAttendeeRequestItem">AWS
* API Reference</a></p>
*/
class AWS_CHIME_API CreateAttendeeRequestItem
{
public:
CreateAttendeeRequestItem();
CreateAttendeeRequestItem(Aws::Utils::Json::JsonView jsonValue);
CreateAttendeeRequestItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline const Aws::String& GetExternalUserId() const{ return m_externalUserId; }
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline bool ExternalUserIdHasBeenSet() const { return m_externalUserIdHasBeenSet; }
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline void SetExternalUserId(const Aws::String& value) { m_externalUserIdHasBeenSet = true; m_externalUserId = value; }
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline void SetExternalUserId(Aws::String&& value) { m_externalUserIdHasBeenSet = true; m_externalUserId = std::move(value); }
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline void SetExternalUserId(const char* value) { m_externalUserIdHasBeenSet = true; m_externalUserId.assign(value); }
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline CreateAttendeeRequestItem& WithExternalUserId(const Aws::String& value) { SetExternalUserId(value); return *this;}
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline CreateAttendeeRequestItem& WithExternalUserId(Aws::String&& value) { SetExternalUserId(std::move(value)); return *this;}
/**
* <p>The Amazon Chime SDK external user ID. Links the attendee to an identity
* managed by a builder application.</p>
*/
inline CreateAttendeeRequestItem& WithExternalUserId(const char* value) { SetExternalUserId(value); return *this;}
/**
* <p>The tag key-value pairs.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tag key-value pairs.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tag key-value pairs.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tag key-value pairs.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tag key-value pairs.</p>
*/
inline CreateAttendeeRequestItem& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tag key-value pairs.</p>
*/
inline CreateAttendeeRequestItem& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tag key-value pairs.</p>
*/
inline CreateAttendeeRequestItem& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tag key-value pairs.</p>
*/
inline CreateAttendeeRequestItem& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_externalUserId;
bool m_externalUserIdHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Chime
} // namespace Aws