コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmailDefinition" /> class.
 /// </summary>
 /// <param name="name">Name of the definition. Must be unique. (required).</param>
 /// <param name="definitionKey">Unique, user-generated key to access the definition object. (required).</param>
 /// <param name="definitionId">Definition Id.</param>
 /// <param name="description">User-provided description of the email definition..</param>
 /// <param name="classification">Marketing Cloud external key of a sending classification defined in Email Studio Administration. Only transactional classifications are permitted. Default is default transactional..</param>
 /// <param name="status">Operational state of the definition: active, inactive, or deleted. A message sent to an active definition is processed and delivered. A message sent to an inactive definition isn’t processed or delivered. Instead, the message is queued for later processing for up to three days..</param>
 /// <param name="content">content (required).</param>
 /// <param name="subscriptions">subscriptions (required).</param>
 /// <param name="options">options.</param>
 public EmailDefinition(string name = default(string), string definitionKey = default(string), string definitionId = default(string), string description = default(string), string classification = default(string), string status = default(string), EmailDefinitionContent content = default(EmailDefinitionContent), EmailDefinitionSubscriptions subscriptions = default(EmailDefinitionSubscriptions), EmailDefinitionOptions options = default(EmailDefinitionOptions))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for EmailDefinition and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "definitionKey" is required (not null)
     if (definitionKey == null)
     {
         throw new InvalidDataException("definitionKey is a required property for EmailDefinition and cannot be null");
     }
     else
     {
         this.DefinitionKey = definitionKey;
     }
     // to ensure "content" is required (not null)
     if (content == null)
     {
         throw new InvalidDataException("content is a required property for EmailDefinition and cannot be null");
     }
     else
     {
         this.Content = content;
     }
     // to ensure "subscriptions" is required (not null)
     if (subscriptions == null)
     {
         throw new InvalidDataException("subscriptions is a required property for EmailDefinition and cannot be null");
     }
     else
     {
         this.Subscriptions = subscriptions;
     }
     this.DefinitionId   = definitionId;
     this.Description    = description;
     this.Classification = classification;
     this.Status         = status;
     this.Options        = options;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateEmailDefinitionRequest" /> class.
 /// </summary>
 /// <param name="name">Name of the definition. Must be unique..</param>
 /// <param name="content">content.</param>
 /// <param name="status">Operational state of the definition: active, inactive, or deleted. A message sent to an active definition is processed and delivered. A message sent to an inactive definition isn’t processed or delivered. Instead, the message is queued for later processing for up to three days..</param>
 /// <param name="description">User-provided description of the email definition..</param>
 /// <param name="classification">Marketing Cloud external key of a sending classification defined in Email Studio Administration. Only transactional classifications are permitted. Default is default transactional..</param>
 /// <param name="subscriptions">subscriptions.</param>
 /// <param name="options">options.</param>
 public UpdateEmailDefinitionRequest(string name = default(string), EmailDefinitionContent content = default(EmailDefinitionContent), string status = default(string), string description = default(string), string classification = default(string), EmailDefinitionSubscriptions subscriptions = default(EmailDefinitionSubscriptions), EmailDefinitionOptions options = default(EmailDefinitionOptions))
 {
     this.Name           = name;
     this.Content        = content;
     this.Status         = status;
     this.Description    = description;
     this.Classification = classification;
     this.Subscriptions  = subscriptions;
     this.Options        = options;
 }