/*
* 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-reviewer-2019-09-19.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.CodeGuruReviewer.Model
{
///
/// Container for the parameters to the ListRepositoryAssociations operation.
/// Returns a list of RepositoryAssociationSummary
/// objects that contain summary information about a repository association. You can filter
/// the returned list by ProviderType,
/// Name,
/// State,
/// and Owner.
///
public partial class ListRepositoryAssociationsRequest : AmazonCodeGuruReviewerRequest
{
private int? _maxResults;
private List _names = new List();
private string _nextToken;
private List _owners = new List();
private List _providerTypes = new List();
private List _states = new List();
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of repository association results returned by ListRepositoryAssociations
/// in paginated output. When this parameter is used, ListRepositoryAssociations
/// only returns maxResults
results in a single page with a nextToken
/// response element. The remaining results of the initial request can be seen by sending
/// another ListRepositoryAssociations
request with the returned nextToken
/// value. This value can be between 1 and 100. If this parameter is not used, ListRepositoryAssociations
/// returns up to 100 results and a nextToken
value if applicable.
///
///
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property Names.
///
/// List of repository names to use as a filter.
///
///
[AWSProperty(Min=1, Max=3)]
public List Names
{
get { return this._names; }
set { this._names = value; }
}
// Check to see if Names property is set
internal bool IsSetNames()
{
return this._names != null && this._names.Count > 0;
}
///
/// Gets and sets the property NextToken.
///
/// The nextToken
value returned from a previous paginated ListRepositoryAssociations
/// request where maxResults
was used and the results exceeded the value
/// of that parameter. Pagination continues from the end of the previous results that
/// returned the nextToken
value.
///
///
///
/// Treat this token as an opaque identifier that is only used to retrieve the next items
/// in a list and not for other programmatic purposes.
///
///
///
[AWSProperty(Min=1, Max=2048)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property Owners.
///
/// List of owners to use as a filter. For Amazon Web Services CodeCommit, it is the name
/// of the CodeCommit account that was used to associate the repository. For other repository
/// source providers, such as Bitbucket and GitHub Enterprise Server, this is name of
/// the account that was used to associate the repository.
///
///
[AWSProperty(Min=1, Max=3)]
public List Owners
{
get { return this._owners; }
set { this._owners = value; }
}
// Check to see if Owners property is set
internal bool IsSetOwners()
{
return this._owners != null && this._owners.Count > 0;
}
///
/// Gets and sets the property ProviderTypes.
///
/// List of provider types to use as a filter.
///
///
[AWSProperty(Min=1, Max=3)]
public List ProviderTypes
{
get { return this._providerTypes; }
set { this._providerTypes = value; }
}
// Check to see if ProviderTypes property is set
internal bool IsSetProviderTypes()
{
return this._providerTypes != null && this._providerTypes.Count > 0;
}
///
/// Gets and sets the property States.
///
/// List of repository association states to use as a filter.
///
///
///
/// The valid repository association states are:
///
/// -
///
/// Associated: The repository association is complete.
///
///
-
///
/// Associating: CodeGuru Reviewer is:
///
///
-
///
/// Setting up pull request notifications. This is required for pull requests to trigger
/// a CodeGuru Reviewer review.
///
///
///
/// If your repository
ProviderType
is GitHub
, GitHub
/// Enterprise Server
, or Bitbucket
, CodeGuru Reviewer creates webhooks
/// in your repository to trigger CodeGuru Reviewer reviews. If you delete these webhooks,
/// reviews of code in your repository cannot be triggered.
///
/// -
///
/// Setting up source code access. This is required for CodeGuru Reviewer to securely
/// clone code in your repository.
///
///
-
///
/// Failed: The repository failed to associate or disassociate.
///
///
-
///
/// Disassociating: CodeGuru Reviewer is removing the repository's pull request
/// notifications and source code access.
///
///
-
///
/// Disassociated: CodeGuru Reviewer successfully disassociated the repository.
/// You can create a new association with this repository if you want to review source
/// code in it later. You can control access to code reviews created in anassociated repository
/// with tags after it has been disassociated. For more information, see Using
/// tags to control access to associated repositories in the Amazon CodeGuru Reviewer
/// User Guide.
///
///
///
[AWSProperty(Min=1, Max=5)]
public List States
{
get { return this._states; }
set { this._states = value; }
}
// Check to see if States property is set
internal bool IsSetStates()
{
return this._states != null && this._states.Count > 0;
}
}
}