View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.1.2,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.buildcache.xml.config;
7   
8   /**
9    * Class Remote.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Remote
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Address of remote cache.
24       */
25      private String url;
26  
27      /**
28       * Field enabled.
29       */
30      private boolean enabled = true;
31  
32      /**
33       * Save output to remote cache. Recommended to enable on CI
34       * agents only.
35       */
36      private boolean saveToRemote = false;
37  
38      /**
39       * The transport to use, currently, only 'resolver' is supported
40       */
41      private String transport = "resolver";
42  
43      /**
44       * The repository id used to find authentication / mirror
45       * information in maven settings, default to 'cache'.
46       */
47      private String id = "cache";
48  
49  
50        //-----------/
51       //- Methods -/
52      //-----------/
53  
54      /**
55       * Get the repository id used to find authentication / mirror
56       * information in maven settings, default to 'cache'.
57       * 
58       * @return String
59       */
60      public String getId()
61      {
62          return this.id;
63      } //-- String getId()
64  
65      /**
66       * Get the transport to use, currently, only 'resolver' is
67       * supported.
68       * 
69       * @return String
70       */
71      public String getTransport()
72      {
73          return this.transport;
74      } //-- String getTransport()
75  
76      /**
77       * Get address of remote cache.
78       * 
79       * @return String
80       */
81      public String getUrl()
82      {
83          return this.url;
84      } //-- String getUrl()
85  
86      /**
87       * Get the enabled field.
88       * 
89       * @return boolean
90       */
91      public boolean isEnabled()
92      {
93          return this.enabled;
94      } //-- boolean isEnabled()
95  
96      /**
97       * Get save output to remote cache. Recommended to enable on CI
98       * agents only.
99       * 
100      * @return boolean
101      */
102     public boolean isSaveToRemote()
103     {
104         return this.saveToRemote;
105     } //-- boolean isSaveToRemote()
106 
107     /**
108      * Set the enabled field.
109      * 
110      * @param enabled a enabled object.
111      */
112     public void setEnabled( boolean enabled )
113     {
114         this.enabled = enabled;
115     } //-- void setEnabled( boolean )
116 
117     /**
118      * Set the repository id used to find authentication / mirror
119      * information in maven settings, default to 'cache'.
120      * 
121      * @param id a id object.
122      */
123     public void setId( String id )
124     {
125         this.id = id;
126     } //-- void setId( String )
127 
128     /**
129      * Set save output to remote cache. Recommended to enable on CI
130      * agents only.
131      * 
132      * @param saveToRemote a saveToRemote object.
133      */
134     public void setSaveToRemote( boolean saveToRemote )
135     {
136         this.saveToRemote = saveToRemote;
137     } //-- void setSaveToRemote( boolean )
138 
139     /**
140      * Set the transport to use, currently, only 'resolver' is
141      * supported.
142      * 
143      * @param transport a transport object.
144      */
145     public void setTransport( String transport )
146     {
147         this.transport = transport;
148     } //-- void setTransport( String )
149 
150     /**
151      * Set address of remote cache.
152      * 
153      * @param url a url object.
154      */
155     public void setUrl( String url )
156     {
157         this.url = url;
158     } //-- void setUrl( String )
159 
160 }