/*
* 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 signer-2017-08-25.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.Signer.Model
{
///
/// Container for the parameters to the StartSigningJob operation.
/// Initiates a signing job to be performed on the code provided. Signing jobs are viewable
/// by the ListSigningJobs operation for two years after they are performed.
/// Note the following requirements:
///
/// -
///
/// You must create an Amazon S3 source bucket. For more information, see Creating
/// a Bucket in the Amazon S3 Getting Started Guide.
///
///
-
///
/// Your S3 source bucket must be version enabled.
///
///
-
///
/// You must create an S3 destination bucket. Code signing uses your S3 destination bucket
/// to write your signed code.
///
///
-
///
/// You specify the name of the source and destination buckets when calling the
StartSigningJob
/// operation.
///
/// -
///
/// You must also specify a request token that identifies your request to code signing.
///
///
///
/// You can call the DescribeSigningJob and the ListSigningJobs actions
/// after you call StartSigningJob.
///
///
///
/// For a Java example that shows how to use this action, see StartSigningJob.
///
///
public partial class StartSigningJobRequest : AmazonSignerRequest
{
private string _clientRequestToken;
private Destination _destination;
private string _profileName;
private string _profileOwner;
private Source _source;
///
/// Gets and sets the property ClientRequestToken.
///
/// String that identifies the signing request. All calls after the first that use this
/// token return the same response as the first call.
///
///
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property Destination.
///
/// The S3 bucket in which to save your signed object. The destination contains the name
/// of your bucket and an optional prefix.
///
///
[AWSProperty(Required=true)]
public Destination Destination
{
get { return this._destination; }
set { this._destination = value; }
}
// Check to see if Destination property is set
internal bool IsSetDestination()
{
return this._destination != null;
}
///
/// Gets and sets the property ProfileName.
///
/// The name of the signing profile.
///
///
[AWSProperty(Required=true, Min=2, Max=64)]
public string ProfileName
{
get { return this._profileName; }
set { this._profileName = value; }
}
// Check to see if ProfileName property is set
internal bool IsSetProfileName()
{
return this._profileName != null;
}
///
/// Gets and sets the property ProfileOwner.
///
/// The AWS account ID of the signing profile owner.
///
///
[AWSProperty(Min=12, Max=12)]
public string ProfileOwner
{
get { return this._profileOwner; }
set { this._profileOwner = value; }
}
// Check to see if ProfileOwner property is set
internal bool IsSetProfileOwner()
{
return this._profileOwner != null;
}
///
/// Gets and sets the property Source.
///
/// The S3 bucket that contains the object to sign or a BLOB that contains your raw code.
///
///
[AWSProperty(Required=true)]
public Source Source
{
get { return this._source; }
set { this._source = value; }
}
// Check to see if Source property is set
internal bool IsSetSource()
{
return this._source != null;
}
}
}