/*
* 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 codeguru-security-2018-05-10.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.CodeGuruSecurity.Model
{
///
/// This is the response object from the CreateUploadUrl operation.
///
public partial class CreateUploadUrlResponse : AmazonWebServiceResponse
{
private string _codeArtifactId;
private Dictionary _requestHeaders = new Dictionary();
private string _s3Url;
///
/// Gets and sets the property CodeArtifactId.
///
/// The identifier for the uploaded code resource.
///
///
[AWSProperty(Required=true)]
public string CodeArtifactId
{
get { return this._codeArtifactId; }
set { this._codeArtifactId = value; }
}
// Check to see if CodeArtifactId property is set
internal bool IsSetCodeArtifactId()
{
return this._codeArtifactId != null;
}
///
/// Gets and sets the property RequestHeaders.
///
/// A set of key-value pairs that contain the required headers when uploading your resource.
///
///
[AWSProperty(Required=true, Sensitive=true)]
public Dictionary RequestHeaders
{
get { return this._requestHeaders; }
set { this._requestHeaders = value; }
}
// Check to see if RequestHeaders property is set
internal bool IsSetRequestHeaders()
{
return this._requestHeaders != null && this._requestHeaders.Count > 0;
}
///
/// Gets and sets the property S3Url.
///
/// A pre-signed S3 URL. You can upload the code file you want to scan and add the required
/// requestHeaders
using any HTTP client.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1)]
public string S3Url
{
get { return this._s3Url; }
set { this._s3Url = value; }
}
// Check to see if S3Url property is set
internal bool IsSetS3Url()
{
return this._s3Url != null;
}
}
}