View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.buildcache.xml.config;
25  
26  /**
27   * Class Remote.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Remote
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Address of remote cache.
42       */
43      private String url;
44  
45      /**
46       * Field enabled.
47       */
48      private boolean enabled = true;
49  
50      /**
51       * Save output to remote cache. Recommended to enable on CI
52       * agents only.
53       */
54      private boolean saveToRemote = false;
55  
56      /**
57       * The transport to use, currently, only 'resolver' is supported
58       */
59      private String transport = "resolver";
60  
61      /**
62       * The repository id used to find authentication / mirror
63       * information in maven settings, default to 'cache'.
64       */
65      private String id = "cache";
66  
67  
68        //-----------/
69       //- Methods -/
70      //-----------/
71  
72      /**
73       * Get the repository id used to find authentication / mirror
74       * information in maven settings, default to 'cache'.
75       * 
76       * @return String
77       */
78      public String getId()
79      {
80          return this.id;
81      } //-- String getId()
82  
83      /**
84       * Get the transport to use, currently, only 'resolver' is
85       * supported.
86       * 
87       * @return String
88       */
89      public String getTransport()
90      {
91          return this.transport;
92      } //-- String getTransport()
93  
94      /**
95       * Get address of remote cache.
96       * 
97       * @return String
98       */
99      public String getUrl()
100     {
101         return this.url;
102     } //-- String getUrl()
103 
104     /**
105      * Get the enabled field.
106      * 
107      * @return boolean
108      */
109     public boolean isEnabled()
110     {
111         return this.enabled;
112     } //-- boolean isEnabled()
113 
114     /**
115      * Get save output to remote cache. Recommended to enable on CI
116      * agents only.
117      * 
118      * @return boolean
119      */
120     public boolean isSaveToRemote()
121     {
122         return this.saveToRemote;
123     } //-- boolean isSaveToRemote()
124 
125     /**
126      * Set the enabled field.
127      * 
128      * @param enabled a enabled object.
129      */
130     public void setEnabled( boolean enabled )
131     {
132         this.enabled = enabled;
133     } //-- void setEnabled( boolean )
134 
135     /**
136      * Set the repository id used to find authentication / mirror
137      * information in maven settings, default to 'cache'.
138      * 
139      * @param id a id object.
140      */
141     public void setId( String id )
142     {
143         this.id = id;
144     } //-- void setId( String )
145 
146     /**
147      * Set save output to remote cache. Recommended to enable on CI
148      * agents only.
149      * 
150      * @param saveToRemote a saveToRemote object.
151      */
152     public void setSaveToRemote( boolean saveToRemote )
153     {
154         this.saveToRemote = saveToRemote;
155     } //-- void setSaveToRemote( boolean )
156 
157     /**
158      * Set the transport to use, currently, only 'resolver' is
159      * supported.
160      * 
161      * @param transport a transport object.
162      */
163     public void setTransport( String transport )
164     {
165         this.transport = transport;
166     } //-- void setTransport( String )
167 
168     /**
169      * Set address of remote cache.
170      * 
171      * @param url a url object.
172      */
173     public void setUrl( String url )
174     {
175         this.url = url;
176     } //-- void setUrl( String )
177 
178 }