/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the iotthingsgraph-2018-09-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.IoTThingsGraph.Model
{
///
/// Container for the parameters to the UploadEntityDefinitions operation.
/// Asynchronously uploads one or more entity definitions to the user's namespace. The
/// document
parameter is required if syncWithPublicNamespace
/// and deleteExistingEntites
are false. If the syncWithPublicNamespace
/// parameter is set to true
, the user's namespace will synchronize with
/// the latest version of the public namespace. If deprecateExistingEntities
/// is set to true, all entities in the latest version will be deleted before the new
/// DefinitionDocument
is uploaded.
///
///
///
/// When a user uploads entity definitions for the first time, the service creates a new
/// namespace for the user. The new namespace tracks the public namespace. Currently users
/// can have only one namespace. The namespace version increments whenever a user uploads
/// entity definitions that are backwards-incompatible and whenever a user sets the syncWithPublicNamespace
/// parameter or the deprecateExistingEntities
parameter to true
.
///
///
///
/// The IDs for all of the entities should be in URN format. Each entity must be in the
/// user's namespace. Users can't create entities in the public namespace, but entity
/// definitions can refer to entities in the public namespace.
///
///
///
/// Valid entities are Device
, DeviceModel
, Service
,
/// Capability
, State
, Action
, Event
,
/// Property
, Mapping
, Enum
.
///
///
public partial class UploadEntityDefinitionsRequest : AmazonIoTThingsGraphRequest
{
private bool? _deprecateExistingEntities;
private DefinitionDocument _document;
private bool? _syncWithPublicNamespace;
///
/// Gets and sets the property DeprecateExistingEntities.
///
/// A Boolean that specifies whether to deprecate all entities in the latest version before
/// uploading the new DefinitionDocument
. If set to true
, the
/// upload will create a new namespace version.
///
///
public bool DeprecateExistingEntities
{
get { return this._deprecateExistingEntities.GetValueOrDefault(); }
set { this._deprecateExistingEntities = value; }
}
// Check to see if DeprecateExistingEntities property is set
internal bool IsSetDeprecateExistingEntities()
{
return this._deprecateExistingEntities.HasValue;
}
///
/// Gets and sets the property Document.
///
/// The DefinitionDocument
that defines the updated entities.
///
///
public DefinitionDocument Document
{
get { return this._document; }
set { this._document = value; }
}
// Check to see if Document property is set
internal bool IsSetDocument()
{
return this._document != null;
}
///
/// Gets and sets the property SyncWithPublicNamespace.
///
/// A Boolean that specifies whether to synchronize with the latest version of the public
/// namespace. If set to true
, the upload will create a new namespace version.
///
///
public bool SyncWithPublicNamespace
{
get { return this._syncWithPublicNamespace.GetValueOrDefault(); }
set { this._syncWithPublicNamespace = value; }
}
// Check to see if SyncWithPublicNamespace property is set
internal bool IsSetSyncWithPublicNamespace()
{
return this._syncWithPublicNamespace.HasValue;
}
}
}