/* * 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 lightsail-2016-11-28.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.Lightsail.Model { /// /// Container for the parameters to the RegisterContainerImage operation. /// Registers a container image to your Amazon Lightsail container service. /// /// /// /// This action is not required if you install and use the Lightsail Control (lightsailctl) /// plugin to push container images to your Lightsail container service. For more information, /// see Pushing /// and managing container images on your Amazon Lightsail container services in the /// Amazon Lightsail Developer Guide. /// /// /// public partial class RegisterContainerImageRequest : AmazonLightsailRequest { private string _digest; private string _label; private string _serviceName; /// /// Gets and sets the property Digest. /// /// The digest of the container image to be registered. /// /// [AWSProperty(Required=true)] public string Digest { get { return this._digest; } set { this._digest = value; } } // Check to see if Digest property is set internal bool IsSetDigest() { return this._digest != null; } /// /// Gets and sets the property Label. /// /// The label for the container image when it's registered to the container service. /// /// /// /// Use a descriptive label that you can use to track the different versions of your registered /// container images. /// /// /// /// Use the GetContainerImages action to return the container images registered /// to a Lightsail container service. The label is the <imagelabel> /// portion of the following image name example: /// /// /// /// If the name of your container service is mycontainerservice, and the /// label that you specify is mystaticwebsite, then the name of the registered /// container image will be :mycontainerservice.mystaticwebsite.1. /// /// /// /// The number at the end of these image name examples represents the version of the registered /// container image. If you push and register another container image to the same Lightsail /// container service, with the same label, then the version number for the new registered /// container image will be 2. If you push and register another container /// image, the version number will be 3, and so on. /// /// [AWSProperty(Required=true, Min=1, Max=53)] public string Label { get { return this._label; } set { this._label = value; } } // Check to see if Label property is set internal bool IsSetLabel() { return this._label != null; } /// /// Gets and sets the property ServiceName. /// /// The name of the container service for which to register a container image. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string ServiceName { get { return this._serviceName; } set { this._serviceName = value; } } // Check to see if ServiceName property is set internal bool IsSetServiceName() { return this._serviceName != null; } } }